```工厂信息更新方法调整,明确使用更新工厂部门接口
为确保工厂信息更新逻辑的准确性,FactoryInfoServiceImpl类中的更新操作现明确通过调用updateFactoryDept方法来执行,而不是之前的updateDept方法,以反映更新操作专用于工厂部门。 ```
This commit is contained in:
parent
53678a7ec2
commit
2936acc8b0
@ -91,7 +91,7 @@ public class FactoryInfoServiceImpl implements FactoryInfoService {
|
|||||||
deptRespDTO.setName(updateReqVO.getShortName());
|
deptRespDTO.setName(updateReqVO.getShortName());
|
||||||
deptRespDTO.setLeaderUserId(updateReqVO.getLeaderUserId());
|
deptRespDTO.setLeaderUserId(updateReqVO.getLeaderUserId());
|
||||||
deptRespDTO.setFactoryId(updateReqVO.getId());
|
deptRespDTO.setFactoryId(updateReqVO.getId());
|
||||||
deptApi.updateDept(deptRespDTO);
|
deptApi.updateFactoryDept(deptRespDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -259,5 +259,11 @@ public class FactoryInfoServiceImpl implements FactoryInfoService {
|
|||||||
// 更新
|
// 更新
|
||||||
FactoryInfoDO updateObj = BeanUtils.toBean(updateReqVO, FactoryInfoDO.class);
|
FactoryInfoDO updateObj = BeanUtils.toBean(updateReqVO, FactoryInfoDO.class);
|
||||||
factoryInfoMapper.updateById(updateObj);
|
factoryInfoMapper.updateById(updateObj);
|
||||||
|
|
||||||
|
//同步更新 工厂部门状态
|
||||||
|
DeptRespDTO deptRespDTO = new DeptRespDTO();
|
||||||
|
deptRespDTO.setFactoryId(updateReqVO.getId());
|
||||||
|
deptRespDTO.setStatus(updateReqVO.getStatus());
|
||||||
|
deptApi.updateFactoryDept(deptRespDTO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user