From ff2ef78be0046640dba5487ae70a1bea479fc6b3 Mon Sep 17 00:00:00 2001 From: tangqian Date: Tue, 30 May 2023 20:03:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=82=E5=B8=B8=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/system/service/dept/DeptServiceImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 b3f71d51d..defd6493e 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 @@ -347,10 +347,10 @@ public class DeptServiceImpl implements DeptService { DeptDO deptDO2 = new DeptDO(); deptDO2.setName(batchImportVO.getDepName()); deptDO2.setParentId(deptDO1.getId()); - deptDO2.setParentOrganizationName(deptDO1.getParentOrganizationName() + "," + batchImportVO.getDepName()); + deptDO2.setParentOrganizationName(deptDO1.getParentOrganizationName() + ">" + batchImportVO.getDepName()); deptDO2.setCharacteristic(batchImportVO.getCharacteristic()); deptMapper.insert(deptDO2); - deptDO2.setParentOrganizationIds(deptDO1.getParentOrganizationIds() + "," + deptDO2.getId()); + deptDO2.setParentOrganizationIds(deptDO1.getParentOrganizationIds() + ">" + deptDO2.getId()); deptMapper.update(deptDO2,Wrappers.lambdaUpdate().eq(DeptDO::getId,deptDO2.getId())); deptDOS2.add(deptDO2); } @@ -361,10 +361,10 @@ public class DeptServiceImpl implements DeptService { List collect1 = deptDOS2.stream().filter(e -> e.getCharacteristic().equals(batchImportVO.getRelation())).collect(Collectors.toList()); DeptDO deptDO = collect1.get(0); deptDO3.setParentId(deptDO.getId()); - deptDO3.setParentOrganizationName(deptDO.getParentOrganizationName() + "," + batchImportVO.getDepName()); + deptDO3.setParentOrganizationName(deptDO.getParentOrganizationName() + ">" + batchImportVO.getDepName()); deptDO3.setCharacteristic(batchImportVO.getCharacteristic()); deptMapper.insert(deptDO3); - deptDO3.setParentOrganizationIds(deptDO.getParentOrganizationIds() + "," + deptDO3.getId()); + deptDO3.setParentOrganizationIds(deptDO.getParentOrganizationIds() + ">" + deptDO3.getId()); deptMapper.update(deptDO3,Wrappers.lambdaUpdate().eq(DeptDO::getId,deptDO3.getId())); deptDOS3.add(deptDO3); } @@ -375,9 +375,9 @@ public class DeptServiceImpl implements DeptService { List collect1 = deptDOS3.stream().filter(e -> e.getCharacteristic().equals(batchImportVO.getRelation())).collect(Collectors.toList()); DeptDO deptDO = collect1.get(0); deptDO4.setParentId(deptDO.getId()); - deptDO4.setParentOrganizationName(deptDO.getParentOrganizationName() + "," + batchImportVO.getDepName()); + deptDO4.setParentOrganizationName(deptDO.getParentOrganizationName() + ">" + batchImportVO.getDepName()); deptMapper.insert(deptDO4); - deptDO4.setParentOrganizationIds(deptDO.getParentOrganizationIds() + "," + deptDO4.getId()); + deptDO4.setParentOrganizationIds(deptDO.getParentOrganizationIds() + ">" + deptDO4.getId()); deptMapper.update(deptDO4,Wrappers.lambdaUpdate().eq(DeptDO::getId,deptDO4.getId())); deptDOS4.add(deptDO4); }