From 26b0985914409300dc9e06ba2377a5f39aad78b2 Mon Sep 17 00:00:00 2001 From: shiji <1913712590@qq.com> Date: Fri, 21 Jul 2023 11:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97=20?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=B1=BB=E5=9E=8B=E7=9A=84=E4=B8=8A=E7=BA=A7?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/task/controller/TaskController.java | 6 ++++++ 1 file changed, 6 insertions(+) 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("")) {