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 index b731b9a..af575b6 100644 --- 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 @@ -296,6 +296,12 @@ public class TaskController extends JeecgController { e.setUpperTaskName(taskUpper.getTaskName()); } } + if (StringUtils.isNotBlank(e.getTypeId())) { + TaskType taskType = taskTypeService.getById(e.getTypeId()); + if (ObjectUtils.isNotEmpty(taskType)) { + e.setTypePid(taskType.getPid()); + } + } if (e.getTaskFile() != null && !e.getTaskFile().equals("")) { e.setContentType("file"); } else if (e.getTaskPic() != null && !e.getTaskPic().equals("")) {