From 80e2478eb51af249321b1c0105647f25817095e5 Mon Sep 17 00:00:00 2001 From: shiji <1913712590@qq.com> Date: Fri, 14 Jul 2023 18:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AEid=E6=9F=A5=E8=AF=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task/controller/TaskController.java | 19 +++++++++++++++++++ 1 file changed, 19 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 63ab3c0..bd96289 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 @@ -234,6 +234,25 @@ public class TaskController extends JeecgController { if (task == null) { return Result.error("未找到对应数据"); } + if (StringUtils.isNotBlank(task.getUpperId())) { + Task taskUpper = taskService.getById(task.getUpperId()); + if (ObjectUtils.isNotEmpty(taskUpper)) { + task.setUpperTaskName(taskUpper.getTaskName()); + } + } + if (task.getTaskFile()!=null&& !task.getTaskFile().equals("")){ + task.setContentType("file"); + }else if(task.getTaskPic()!=null&& !task.getTaskPic().equals("")){ + task.setContentType("image"); + }else{ + task.setContentType("text"); + } + String managerUsers = task.getManagerUsers(); + if (managerUsers!=null&&!managerUsers.equals("")) { + SysUser byId = iSysUserService.getById(managerUsers); + if (byId!=null) + task.setHeadpic(byId.getAvatar()); + } return Result.OK(task); }