数据更正
This commit is contained in:
+4
-3
@@ -332,6 +332,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
wrapper.isNotNull("DTBJH");
|
||||
wrapper.ne("DTBJH", "");
|
||||
wrapper.eq("valid_flag", "0");
|
||||
wrapper.eq("stand_id", "6zaj8lx8s9ebc3za0g95");
|
||||
List<SarStandAttrInfo> sarStandAttrInfos = sarStandAttrInfoEODao.selectList(wrapper);
|
||||
if (null != sarStandAttrInfos && !sarStandAttrInfos.isEmpty()) {
|
||||
//获取数据以及更新自身 新查询当前标准数据并将格式化之后的数据更新到代替标准号中
|
||||
@@ -356,7 +357,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
String bdtbzh = list1.get(0).getStandNum();
|
||||
|
||||
//现在针对处理一波代替标准号 根据标准号找到
|
||||
if (dtbzh.contains(",") && !dtbzh.isEmpty() && !"".equals(dtbzh) && !dtbzh.contains("null") && !dtbzh.contains("Q/FT")) {
|
||||
if (dtbzh.contains(",") && !dtbzh.isEmpty() && !"".equals(dtbzh) && !dtbzh.contains("null") && !dtbzh.contains("Q/FT") && !bdtbzh.contains("null")) {
|
||||
//判定是不是多个
|
||||
List<String> strings = new ArrayList<>(Arrays.asList(dtbzh.split(",")));
|
||||
strings.forEach(s -> {
|
||||
@@ -383,7 +384,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
}
|
||||
});
|
||||
|
||||
} else if (!dtbzh.isEmpty() && !"".equals(dtbzh) && !dtbzh.contains("null") && !dtbzh.contains("Q/FT")) {
|
||||
} else if (!dtbzh.isEmpty() && !"".equals(dtbzh) && !dtbzh.contains("null") && !dtbzh.contains("Q/FT") && !bdtbzh.contains("null")) {
|
||||
//单个
|
||||
SearchStandContext searchStandContext = new SearchStandContext();
|
||||
searchStandContext.setStandCode(dtbzh);
|
||||
@@ -527,7 +528,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
standCode = standCode.replaceAll("、", ",");
|
||||
// standCode = standCode.replaceAll("--", "");
|
||||
// standCode = standCode.replaceAll("-", "");
|
||||
// standCode = standCode.replaceAll("_", "");
|
||||
standCode = standCode.replaceAll("null", "");
|
||||
if ("--".equals(standCode) || "-".equals(standCode) || "_".equals(standCode)) {
|
||||
standCode = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user