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); }