pms单位修改同步修改台账中的单位信息
bug
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
T3.NAME,
|
||||
T3.CODE,
|
||||
T3.type,
|
||||
T5.NAME area,
|
||||
T5.Short_Name area,
|
||||
T3.Remark,
|
||||
T3.sort
|
||||
FROM
|
||||
@@ -149,7 +149,7 @@
|
||||
T3.NAME,
|
||||
T3.CODE,
|
||||
T3.type,
|
||||
T5.NAME area,
|
||||
T5.Short_Name area,
|
||||
T3.Remark,
|
||||
T3.sort
|
||||
FROM
|
||||
|
||||
@@ -12,6 +12,7 @@ import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.db.constant.DbConstant;
|
||||
import com.njcn.device.biz.commApi.CommLedgerDeptClient;
|
||||
import com.njcn.device.pq.api.DeptLineFeignClient;
|
||||
import com.njcn.system.api.AreaFeignClient;
|
||||
import com.njcn.system.pojo.dto.AreaTreeDTO;
|
||||
@@ -63,6 +64,8 @@ public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements ID
|
||||
|
||||
private final UserMapper userMapper;
|
||||
|
||||
private final CommLedgerDeptClient commLedgerDeptClient;
|
||||
|
||||
|
||||
@Override
|
||||
public Page<DeptVO> listDept(DeptParam.QueryParam queryParam) {
|
||||
@@ -119,7 +122,15 @@ public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements ID
|
||||
checkDicDataCode(updateParam, true);
|
||||
Dept dept = new Dept();
|
||||
BeanUtil.copyProperties(updateParam, dept);
|
||||
return this.updateById(dept);
|
||||
|
||||
Dept deptTem = this.getDeptById(updateParam.getId());
|
||||
|
||||
this.updateById(dept);
|
||||
if(!updateParam.getName().equals(deptTem.getName())){
|
||||
//修改了部门名称需要修改台账信息中的单位部门
|
||||
commLedgerDeptClient.update(dept);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user