项目 同步数据----部分数据需要从已维护变为未维护
This commit is contained in:
+11
-3
@@ -69,6 +69,12 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
|
||||
head.setBIZTRANSACTIONID(HEAD.get("BIZTRANSACTIONID").getAsString());
|
||||
|
||||
List<String> strings=new ArrayList<>();
|
||||
strings.add("G4");
|
||||
strings.add("G9");
|
||||
strings.add("G8");
|
||||
strings.add("G7");
|
||||
|
||||
|
||||
//LIST是数组,所以强转成JSONArray
|
||||
JsonArray LIST = (JsonArray) jsonObject.get("LIST");
|
||||
@@ -105,13 +111,15 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
.setProjectEndDate(targetEndOn);
|
||||
}
|
||||
|
||||
|
||||
projectInfo.setId(UUIDUtils.randomUUID20());
|
||||
QueryWrapper<SarStandProjectLibrary> updateCondition = new QueryWrapper<SarStandProjectLibrary>();
|
||||
updateCondition.eq("project_number",projectInfo.getProjectNumber());
|
||||
SarStandProjectLibrary res=this.getOne(updateCondition);
|
||||
if (strings.contains(projectInfo.getCurrentNode().trim()) && res.getCurrentNode().trim().equals(projectInfo.getCurrentNode())){
|
||||
projectInfo.setFlag("0");
|
||||
}
|
||||
|
||||
// .eq("project_start_date",targetBeginOn);
|
||||
|
||||
|
||||
this.saveOrUpdate(projectInfo,updateCondition);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user