Merge pull request 'H5 BUG修复《编辑组织机构会导致system_dept表中parent_organization_name字段异常》' (#17) from bugfix/tgh20230630 into test

Reviewed-on: http://117.33.142.185:3000/zenghuapei/cyywl_server/pulls/17
pull/15/head
TanGH 2023-06-30 10:52:32 +08:00
commit 047741d04c
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();