From 5360358159554d9bc04e5c114096656c428d6afd Mon Sep 17 00:00:00 2001 From: dx <1242347652@qq.com> Date: Fri, 28 Feb 2025 15:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E5=B8=83=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/taskinfo/TaskInfoServiceImpl.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java index e54ca73..8694599 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/taskinfo/TaskInfoServiceImpl.java @@ -271,6 +271,15 @@ public class TaskInfoServiceImpl implements TaskInfoService { if (tagLibraryDOS1 != null && tagLibraryDOS1.size() > 0) { item.setTagList(tagLibraryDOS1.stream().map(TagLibraryDO::getTagName).collect(Collectors.toList())); } + + //发布的部门 + if (item.getCreator() != null) { + final Long value = Long.valueOf(item.getCreator()); + final DeptDO deptDO = deptService.getByUserId(value); + item.setDeptName(deptDO.getName()); + } + + }); }