法规清单编辑-添加判空验证
This commit is contained in:
+11
-5
@@ -4993,12 +4993,12 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
String infoDiffOld = list.get(0);
|
String infoDiffOld = list.get(0);
|
||||||
String infoDiffNew = list.get(1);
|
String infoDiffNew = list.get(1);
|
||||||
contentLog += "'"+ProjectInventoryFieldEnum.SUBTITLE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
contentLog += "'"+ProjectInventoryFieldEnum.SUBTITLE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
||||||
|
}
|
||||||
List<String> listEn = Arrays.asList(infoDiffEn.get("subtitle").split(","));
|
List<String> listEn = Arrays.asList(infoDiffEn.get("subtitle").split(","));
|
||||||
|
if(listEn.size() > 1){
|
||||||
String infoDiffOldEn = listEn.get(0);
|
String infoDiffOldEn = listEn.get(0);
|
||||||
String infoDiffNewEn = listEn.get(1);
|
String infoDiffNewEn = listEn.get(1);
|
||||||
enContentLog += "'"+ProjectInventoryFieldEnum.SUBTITLE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
enContentLog += "'"+ProjectInventoryFieldEnum.SUBTITLE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//WVTA ID
|
//WVTA ID
|
||||||
@@ -5008,8 +5008,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
String infoDiffOld = list.get(0);
|
String infoDiffOld = list.get(0);
|
||||||
String infoDiffNew = list.get(1);
|
String infoDiffNew = list.get(1);
|
||||||
contentLog += "'"+ProjectInventoryFieldEnum.WVTA_ID.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
contentLog += "'"+ProjectInventoryFieldEnum.WVTA_ID.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
||||||
|
}
|
||||||
List<String> listEn = Arrays.asList(infoDiffEn.get("wvtaId").split(","));
|
List<String> listEn = Arrays.asList(infoDiffEn.get("wvtaId").split(","));
|
||||||
|
if(listEn.size() > 1){
|
||||||
String infoDiffOldEn = listEn.get(0);
|
String infoDiffOldEn = listEn.get(0);
|
||||||
String infoDiffNewEn = listEn.get(1);
|
String infoDiffNewEn = listEn.get(1);
|
||||||
enContentLog += "'"+ProjectInventoryFieldEnum.WVTA_ID.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
enContentLog += "'"+ProjectInventoryFieldEnum.WVTA_ID.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
||||||
@@ -5023,8 +5024,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
String infoDiffOld = list.get(0);
|
String infoDiffOld = list.get(0);
|
||||||
String infoDiffNew = list.get(1);
|
String infoDiffNew = list.get(1);
|
||||||
contentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TYPE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
contentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TYPE.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
||||||
|
}
|
||||||
List<String> listEn = Arrays.asList(infoDiffEn.get("implementType").split(","));
|
List<String> listEn = Arrays.asList(infoDiffEn.get("implementType").split(","));
|
||||||
|
if(listEn.size() > 1){
|
||||||
String infoDiffOldEn = listEn.get(0);
|
String infoDiffOldEn = listEn.get(0);
|
||||||
String infoDiffNewEn = listEn.get(1);
|
String infoDiffNewEn = listEn.get(1);
|
||||||
enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TYPE.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
||||||
@@ -5034,14 +5036,18 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
|||||||
//在产车实施日期
|
//在产车实施日期
|
||||||
if (StringUtils.isNotBlank(infoDiff.get("implementTimeString"))) {
|
if (StringUtils.isNotBlank(infoDiff.get("implementTimeString"))) {
|
||||||
List<String> list = Arrays.asList(infoDiff.get("implementTimeString").split(","));
|
List<String> list = Arrays.asList(infoDiff.get("implementTimeString").split(","));
|
||||||
|
if(list.size() > 1){
|
||||||
String infoDiffOld = list.get(0);
|
String infoDiffOld = list.get(0);
|
||||||
String infoDiffNew = list.get(1);
|
String infoDiffNew = list.get(1);
|
||||||
|
contentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
||||||
|
}
|
||||||
|
|
||||||
List<String> listEn = Arrays.asList(infoDiffEn.get("implementTimeString").split(","));
|
List<String> listEn = Arrays.asList(infoDiffEn.get("implementTimeString").split(","));
|
||||||
|
if(listEn.size() > 1){
|
||||||
String infoDiffOldEn = listEn.get(0);
|
String infoDiffOldEn = listEn.get(0);
|
||||||
String infoDiffNewEn = listEn.get(1);
|
String infoDiffNewEn = listEn.get(1);
|
||||||
contentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getName() + "'由" + infoDiffOld + "改为了" + infoDiffNew + "</br>";
|
|
||||||
enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
enContentLog += "'"+ProjectInventoryFieldEnum.IMPLEMENT_TIME.getEnName() +"' has been changed from " + infoDiffOldEn + " to " + infoDiffNewEn + "</br>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//新车型实施日期
|
//新车型实施日期
|
||||||
|
|||||||
Reference in New Issue
Block a user