H5 BUG修复《编辑组织机构会导致system_dept表中parent_organization_name字段异常》

pull/17/head
TanGH 2023-06-30 10:46:42 +08:00
parent 1c0376f60c
commit c0b5a4233a
1 changed files with 2 additions and 1 deletions

View File

@ -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();