|
@@ -240,9 +240,8 @@ public class ProjectManageArchivesServiceImpl extends ServiceImpl<ProjectManageA
|
|
|
for(ProjectManageArchivesAndBusiness business : businessList){
|
|
|
QueryWrapper<ProjectManageArchivesAndBusiness> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("id", business.getId());
|
|
|
- business.setId(UUID.randomUUID().toString());
|
|
|
- business.setDelFlag("1");
|
|
|
- projectManageArchivesAndBusinessService.update(business, queryWrapper);
|
|
|
+
|
|
|
+ projectManageArchivesAndBusinessService.updateDataById(new ProjectManageArchivesAndBusiness(getIdData(), "1"), business.getId());
|
|
|
}
|
|
|
//(作废)
|
|
|
// projectManageArchivesAndBusinessService.deleteBatch(businessList);
|
|
@@ -256,9 +255,7 @@ public class ProjectManageArchivesServiceImpl extends ServiceImpl<ProjectManageA
|
|
|
for(ProjectManageBusinessOther other : businessOtherList) {
|
|
|
QueryWrapper<ProjectManageBusinessOther> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("id", other.getId());
|
|
|
- other.setId(UUID.randomUUID().toString());
|
|
|
- other.setDelFlag("1");
|
|
|
- projectManageBusinessOtherService.update(other, queryWrapper);
|
|
|
+ projectManageBusinessOtherService.updateDataById(new ProjectManageBusinessOther(getIdData(), "1"), other.getId());
|
|
|
}
|
|
|
|
|
|
//(作废)
|
|
@@ -266,7 +263,18 @@ public class ProjectManageArchivesServiceImpl extends ServiceImpl<ProjectManageA
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc 获取uuid
|
|
|
+ */
|
|
|
+ private String getIdData() {
|
|
|
+ String uuid = UUID.randomUUID().toString();
|
|
|
+ String[] idArr = uuid.split("-");
|
|
|
+ return String.join("", idArr);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* @desc 添加项目档案--商务,实施,开发,服务的数据
|
|
|
*/
|
|
|
private void saveArchivesAndBusiness(ProArchivesAddReqDTO reqDTO) {
|
|
@@ -289,7 +297,7 @@ public class ProjectManageArchivesServiceImpl extends ServiceImpl<ProjectManageA
|
|
|
//保存收款计划
|
|
|
List<ProArchivesAndBusinessAddReqDTO> coPlanList = bsInfo.getCoPlanList();
|
|
|
if(!CollectionUtils.isEmpty(coPlanList)){
|
|
|
- saveMileData( coPlanList, reqDTO);
|
|
|
+ saveMileData(coPlanList, reqDTO);
|
|
|
}
|
|
|
//保存收款情况
|
|
|
List<ProArchivesAndBusinessAddReqDTO> coSituationList = bsInfo.getCoSituationList();
|