fix: 异常加上状态码
parent
58037e0ebd
commit
ff2ef78be0
|
@ -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.<DeptDO>lambdaUpdate().eq(DeptDO::getId,deptDO2.getId()));
|
||||
deptDOS2.add(deptDO2);
|
||||
}
|
||||
|
@ -361,10 +361,10 @@ public class DeptServiceImpl implements DeptService {
|
|||
List<DeptDO> 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.<DeptDO>lambdaUpdate().eq(DeptDO::getId,deptDO3.getId()));
|
||||
deptDOS3.add(deptDO3);
|
||||
}
|
||||
|
@ -375,9 +375,9 @@ public class DeptServiceImpl implements DeptService {
|
|||
List<DeptDO> 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.<DeptDO>lambdaUpdate().eq(DeptDO::getId,deptDO4.getId()));
|
||||
deptDOS4.add(deptDO4);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue