1.监督计划功能调整

This commit is contained in:
2024-10-31 09:05:59 +08:00
parent a601af9479
commit 23ee3b1af2
3 changed files with 31 additions and 19 deletions

View File

@@ -75,6 +75,7 @@ public class PmsTemUserServiceImpl extends ServiceImpl<PmsTemUserMapper, PmsTemU
}
@Override
@Transactional(rollbackFor = Exception.class)
public Boolean updatePmsTemUser(PmsTemUserParam.UpdatePmsTemUserParam updatePmsTemUserParam) {
PmsTemUserPO result = this.getById(updatePmsTemUserParam.getObjId());
PmsTemUserPO pmsTemUserPO = new PmsTemUserPO();
@@ -82,6 +83,14 @@ public class PmsTemUserServiceImpl extends ServiceImpl<PmsTemUserMapper, PmsTemU
if(!result.getMaintOrg().equals(updatePmsTemUserParam.getMaintOrg())){
assOrg(pmsTemUserPO);
}
if(!updatePmsTemUserParam.getConsName().equals(result.getConsName())){
//修改全过程表数据
LambdaUpdateWrapper<PmsTemProcessTrackPO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.set(PmsTemProcessTrackPO::getTempUserDossierName,updatePmsTemUserParam.getConsName()).eq(PmsTemProcessTrackPO::getTempUserDossierId,result.getObjId());
pmsTemProcessTrackMapper.update(null,updateWrapper);
}
return this.updateById(pmsTemUserPO);
}