标准文本状态.解决无法自动废止

This commit is contained in:
zhaokaiyao@91isoft.com
2021-09-08 10:17:48 +08:00
parent 7ede6c69af
commit 1a03cfe68f
@@ -224,6 +224,7 @@ public class ScheduledJob {
//数据格式: (GB 123-2000,GB 4233434-2021,GB 423423423-2021) //数据格式: (GB 123-2000,GB 4233434-2021,GB 423423423-2021)
if (!DTBJHStr.equals("")){ if (!DTBJHStr.equals("")){
try{
String[] DTBJHArray = DTBJHStr.split(","); String[] DTBJHArray = DTBJHStr.split(",");
for (String DTBJH : DTBJHArray) { for (String DTBJH : DTBJHArray) {
String[] sortAndNumberAndYear = DTBJH.split("\\s+"); String[] sortAndNumberAndYear = DTBJH.split("\\s+");
@@ -241,8 +242,8 @@ public class ScheduledJob {
List<Map<String, Object>> idMaps = sarStandardsInfoDao.selectMaps(infoWrapper); List<Map<String, Object>> idMaps = sarStandardsInfoDao.selectMaps(infoWrapper);
if (idMaps.size()>0){
String standId = idMaps.get(0).get("ID").toString(); String standId = idMaps.get(0).get("ID").toString();
//如果代替标准id已存在则映射为2不存在则添加并映射为1 //如果代替标准id已存在则映射为2不存在则添加并映射为1
if (replaceIdCountMap.containsKey(standId)) { if (replaceIdCountMap.containsKey(standId)) {
replaceIdCountMap.replace(standId,2); replaceIdCountMap.replace(standId,2);
@@ -251,6 +252,14 @@ public class ScheduledJob {
} }
} }
}
}catch (Exception e){
System.out.println("=====错误===="+item+"=====错误=====");
}
} }