From c0b5a4233a5a50268974ffbd17d1df3a2e045d61 Mon Sep 17 00:00:00 2001 From: TanGH <409473884@qq.com> Date: Fri, 30 Jun 2023 10:46:42 +0800 Subject: [PATCH] =?UTF-8?q?H5=20BUG=E4=BF=AE=E5=A4=8D=E3=80=8A=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84=E4=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4system=5Fdept=E8=A1=A8=E4=B8=ADparent=5Forganization?= =?UTF-8?q?=5Fname=E5=AD=97=E6=AE=B5=E5=BC=82=E5=B8=B8=E3=80=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/system/service/dept/DeptServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java index bf78bd297..0536257da 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java @@ -149,7 +149,8 @@ public class DeptServiceImpl implements DeptService { }); deptMapper.updateBatch(deptDOS, deptDOS.size()); deptDO.setName(reqVO.getName()); - deptDO.setParentOrganizationName(reqVO.getName()); + DeptDO parentDeptDO = deptMapper.selectById(deptDO.getParentId()); + deptDO.setParentOrganizationName(parentDeptDO.getParentOrganizationName() + ">" + reqVO.getName()); deptMapper.updateById(deptDO); // 发送刷新消息 deptProducer.sendDeptRefreshMessage();