法规清单编辑
This commit is contained in:
+22
-2
@@ -382,9 +382,11 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
QueryWrapper<ProjectLawsInventoryEO> queryWrapper = new QueryWrapper<>();
|
||||
List<ProjectLawsInventoryEO> dataList = list(queryWrapper.eq("id", projectLawsInventoryEO.getId()));
|
||||
List<ProjectLawsInventoryEO> dataListCopy = DeepCopyListUtil.depCopy(dataList);
|
||||
|
||||
LambdaUpdateWrapper<ProjectLawsInventoryEO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
setDateNull(projectLawsInventoryEO, updateWrapper);
|
||||
//保存
|
||||
saveOrUpdate(projectLawsInventoryEO);
|
||||
this.update(projectLawsInventoryEO,updateWrapper);
|
||||
// saveOrUpdate(projectLawsInventoryEO);
|
||||
|
||||
//翻译-中文
|
||||
translateData(infoEOList);
|
||||
@@ -412,6 +414,24 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
}
|
||||
|
||||
private void setDateNull(ProjectLawsInventoryEO projectLawsInventoryEO, LambdaUpdateWrapper<ProjectLawsInventoryEO> updateWrapper) {
|
||||
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1())){
|
||||
updateWrapper.set(ProjectLawsInventoryEO::getXin1Che1Xing2Shi2Shi1Ri4Qi1,null);
|
||||
}
|
||||
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getImplementTime())){
|
||||
updateWrapper.set(ProjectLawsInventoryEO::getImplementTime,null);
|
||||
}
|
||||
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getDesignDueDate())){
|
||||
updateWrapper.set(ProjectLawsInventoryEO::getDesignDueDate,null);
|
||||
}
|
||||
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getPrehomoDueDate())){
|
||||
updateWrapper.set(ProjectLawsInventoryEO::getPrehomoDueDate,null);
|
||||
}
|
||||
if(ObjectUtils.isEmpty(projectLawsInventoryEO.getVerifyDueDate())){
|
||||
updateWrapper.set(ProjectLawsInventoryEO::getVerifyDueDate,null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新流程信息
|
||||
* @param projectLawsInventoryEO
|
||||
|
||||
Reference in New Issue
Block a user