diff --git a/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue b/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue index b13afec..37af1a8 100644 --- a/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue +++ b/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue @@ -151,13 +151,13 @@ export default { title: '项目中文名称', align: "center", dataIndex: 'projectName', - customRender: (t)=>ellipsis(t) + customRender: (t) => ellipsis(t) }, { title: '项目英文名称', align: "center", dataIndex: 'projectEnName', - customRender: (t)=>ellipsis(t) + customRender: (t) => ellipsis(t) }, { title: '项目编码', @@ -211,8 +211,8 @@ export default { } }, { - title:'复制来源', - align:"center", + title: '复制来源', + align: "center", dataIndex: 'sourceProjectId_dictText' }, { diff --git a/ant-design-vue-jeecg/src/views/task/TaskList.vue b/ant-design-vue-jeecg/src/views/task/TaskList.vue new file mode 100644 index 0000000..881c9fe --- /dev/null +++ b/ant-design-vue-jeecg/src/views/task/TaskList.vue @@ -0,0 +1,227 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue new file mode 100644 index 0000000..a4b9b23 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue @@ -0,0 +1,136 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/task/modules/TaskModal.vue b/ant-design-vue-jeecg/src/views/task/modules/TaskModal.vue new file mode 100644 index 0000000..0aa03df --- /dev/null +++ b/ant-design-vue-jeecg/src/views/task/modules/TaskModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/task/modules/TaskModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/task/modules/TaskModal__Style#Drawer.vue new file mode 100644 index 0000000..33779c5 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/task/modules/TaskModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/taskType/TaskTypeList.vue b/ant-design-vue-jeecg/src/views/taskType/TaskTypeList.vue new file mode 100644 index 0000000..7d7887e --- /dev/null +++ b/ant-design-vue-jeecg/src/views/taskType/TaskTypeList.vue @@ -0,0 +1,190 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeForm.vue b/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeForm.vue new file mode 100644 index 0000000..70b91ed --- /dev/null +++ b/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeForm.vue @@ -0,0 +1,112 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeModal.vue b/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeModal.vue new file mode 100644 index 0000000..0f2a79b --- /dev/null +++ b/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeModal__Style#Drawer.vue new file mode 100644 index 0000000..8faf322 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/taskType/modules/TaskTypeModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java new file mode 100644 index 0000000..01b214e --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java @@ -0,0 +1,173 @@ +package org.jeecg.modules.task.controller; + + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecg.modules.task.entity.Task; +import org.jeecg.modules.task.service.ITaskService; +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; + + /** + * @Description: 任务管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +@Api(tags="任务管理") +@RestController +@RequestMapping("/task/task") +@Slf4j +public class TaskController extends JeecgController { + @Autowired + private ITaskService taskService; + + /** + * 分页列表查询 + * + * @param task + * @param pageNo + * @param pageSize + * @param req + * @return + */ + @AutoLog(value = "任务管理-分页列表查询") + @ApiOperation(value="任务管理-分页列表查询", notes="任务管理-分页列表查询") + @GetMapping(value = "/list") + public Result queryPageList(Task task, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(task, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = taskService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param task + * @return + */ + @AutoLog(value = "任务管理-添加") + @ApiOperation(value="任务管理-添加", notes="任务管理-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody Task task) { + taskService.save(task); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param task + * @return + */ + @AutoLog(value = "任务管理-编辑") + @ApiOperation(value="任务管理-编辑", notes="任务管理-编辑") + @PutMapping(value = "/edit") + public Result edit(@RequestBody Task task) { + taskService.updateById(task); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "任务管理-通过id删除") + @ApiOperation(value="任务管理-通过id删除", notes="任务管理-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + taskService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "任务管理-批量删除") + @ApiOperation(value="任务管理-批量删除", notes="任务管理-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.taskService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + @AutoLog(value = "任务管理-通过id查询") + @ApiOperation(value="任务管理-通过id查询", notes="任务管理-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + Task task = taskService.getById(id); + if(task==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(task); + } + + /** + * 导出excel + * + * @param request + * @param task + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, Task task) { + return super.exportXls(request, task, Task.class, "任务管理"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, Task.class); + } + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java new file mode 100644 index 0000000..66c64de --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java @@ -0,0 +1,90 @@ +package org.jeecg.modules.task.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 任务管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +@Data +@TableName("task") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="task对象", description="任务管理") +public class Task implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private Date updateTime; + /**上级任务id*/ + @Excel(name = "上级任务id", width = 15) + @ApiModelProperty(value = "上级任务id") + private String upperId; + /**中文名称*/ + @Excel(name = "中文名称", width = 15) + @ApiModelProperty(value = "中文名称") + private String functionTemplateName; + /**责任人*/ + @Excel(name = "责任人", width = 15) + @ApiModelProperty(value = "责任人") + private String managerUsers; + /**任务等级*/ + @Excel(name = "任务等级", width = 15) + @ApiModelProperty(value = "任务等级") + private Integer workLevel; + /**任务状态*/ + @Excel(name = "任务状态", width = 15) + @ApiModelProperty(value = "任务状态") + private Integer workStatus; + /**发布时间*/ + @Excel(name = "发布时间", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @ApiModelProperty(value = "发布时间") + private Date publishTime; + /**开始时间*/ + @Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @ApiModelProperty(value = "开始时间") + private Date startTime; + /**任务时长*/ + @Excel(name = "任务时长", width = 15) + @ApiModelProperty(value = "任务时长") + private String duration; +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/mapper/TaskMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/mapper/TaskMapper.java new file mode 100644 index 0000000..b7a3e35 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/mapper/TaskMapper.java @@ -0,0 +1,18 @@ +package org.jeecg.modules.task.mapper; + + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.jeecg.modules.task.entity.Task; + +/** + * @Description: 任务管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +public interface TaskMapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/mapper/xml/TaskMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/mapper/xml/TaskMapper.xml new file mode 100644 index 0000000..5fa6858 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/mapper/xml/TaskMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/service/ITaskService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/service/ITaskService.java new file mode 100644 index 0000000..dfc1f70 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/service/ITaskService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.task.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import org.jeecg.modules.task.entity.Task; + +/** + * @Description: 任务管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +public interface ITaskService extends IService { + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/service/impl/TaskServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/service/impl/TaskServiceImpl.java new file mode 100644 index 0000000..bc3122e --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/service/impl/TaskServiceImpl.java @@ -0,0 +1,20 @@ +package org.jeecg.modules.task.service.impl; + + +import org.jeecg.modules.task.entity.Task; +import org.jeecg.modules.task.mapper.TaskMapper; +import org.jeecg.modules.task.service.ITaskService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 任务管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +@Service +public class TaskServiceImpl extends ServiceImpl implements ITaskService { + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java new file mode 100644 index 0000000..1f88add --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java @@ -0,0 +1,174 @@ +package org.jeecg.modules.taskType.controller; + + + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.util.oConvertUtils; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecg.modules.taskType.entity.TaskType; +import org.jeecg.modules.taskType.service.ITaskTypeService; +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.aspect.annotation.AutoLog; + + /** + * @Description: 任务类型管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +@Api(tags="任务类型管理") +@RestController +@RequestMapping("/taskType/taskType") +@Slf4j +public class TaskTypeController extends JeecgController { + @Autowired + private ITaskTypeService taskTypeService; + + /** + * 分页列表查询 + * + * @param taskType + * @param pageNo + * @param pageSize + * @param req + * @return + */ + @AutoLog(value = "任务类型管理-分页列表查询") + @ApiOperation(value="任务类型管理-分页列表查询", notes="任务类型管理-分页列表查询") + @GetMapping(value = "/list") + public Result queryPageList(TaskType taskType, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(taskType, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = taskTypeService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param taskType + * @return + */ + @AutoLog(value = "任务类型管理-添加") + @ApiOperation(value="任务类型管理-添加", notes="任务类型管理-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody TaskType taskType) { + taskTypeService.save(taskType); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param taskType + * @return + */ + @AutoLog(value = "任务类型管理-编辑") + @ApiOperation(value="任务类型管理-编辑", notes="任务类型管理-编辑") + @PutMapping(value = "/edit") + public Result edit(@RequestBody TaskType taskType) { + taskTypeService.updateById(taskType); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "任务类型管理-通过id删除") + @ApiOperation(value="任务类型管理-通过id删除", notes="任务类型管理-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + taskTypeService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "任务类型管理-批量删除") + @ApiOperation(value="任务类型管理-批量删除", notes="任务类型管理-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.taskTypeService.removeByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + @AutoLog(value = "任务类型管理-通过id查询") + @ApiOperation(value="任务类型管理-通过id查询", notes="任务类型管理-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + TaskType taskType = taskTypeService.getById(id); + if(taskType==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(taskType); + } + + /** + * 导出excel + * + * @param request + * @param taskType + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, TaskType taskType) { + return super.exportXls(request, taskType, TaskType.class, "任务类型管理"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, TaskType.class); + } + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/entity/TaskType.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/entity/TaskType.java new file mode 100644 index 0000000..95b1c03 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/entity/TaskType.java @@ -0,0 +1,64 @@ +package org.jeecg.modules.taskType.entity; + + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 任务类型管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +@Data +@TableName("task_type") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="task_type对象", description="任务类型管理") +public class TaskType implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private Date updateTime; + /**任务层级*/ + @Excel(name = "任务层级", width = 15) + @ApiModelProperty(value = "任务层级") + @Dict(dicCode = "task_type_level") + private Integer level; + /**类型名称*/ + @Excel(name = "类型名称", width = 15) + @ApiModelProperty(value = "类型名称") + private String typeName; +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/mapper/TaskTypeMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/mapper/TaskTypeMapper.java new file mode 100644 index 0000000..ed3ab0c --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/mapper/TaskTypeMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.taskType.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.jeecg.modules.taskType.entity.TaskType; + +/** + * @Description: 任务类型管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +public interface TaskTypeMapper extends BaseMapper { + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/mapper/xml/TaskTypeMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/mapper/xml/TaskTypeMapper.xml new file mode 100644 index 0000000..58fedd2 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/mapper/xml/TaskTypeMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/service/ITaskTypeService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/service/ITaskTypeService.java new file mode 100644 index 0000000..896b175 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/service/ITaskTypeService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.taskType.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import org.jeecg.modules.taskType.entity.TaskType; + +/** + * @Description: 任务类型管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +public interface ITaskTypeService extends IService { + +} diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/service/impl/TaskTypeServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/service/impl/TaskTypeServiceImpl.java new file mode 100644 index 0000000..552eb38 --- /dev/null +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/service/impl/TaskTypeServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.taskType.service.impl; + +import org.jeecg.modules.taskType.entity.TaskType; +import org.jeecg.modules.taskType.mapper.TaskTypeMapper; +import org.jeecg.modules.taskType.service.ITaskTypeService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 任务类型管理 + * @Author: jeecg-boot + * @Date: 2023-05-24 + * @Version: V1.0 + */ +@Service +public class TaskTypeServiceImpl extends ServiceImpl implements ITaskTypeService { + +}