校验优化

This commit is contained in:
gaojiabao
2023-03-20 16:27:55 +08:00
parent 994e4acbbb
commit b4946c9ecc
@@ -2650,7 +2650,8 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = fileId; String id = fileId;
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
String theSame = isTheSame(byId.getOldFileName(),bid); if(byId!=null) {
String theSame = isTheSame(byId.getOldFileName(), bid);
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId()); OldSystem sortSign = sarStandardsInfoDao.loreDepotSort(oldSystem.getSortId());
@@ -2673,6 +2674,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
}
} else { } else {
int numberCount = 0; int numberCount = 0;
//只允许2个文件名称相同 //只允许2个文件名称相同
@@ -2765,6 +2767,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
}else { }else {
String id = SarStandardsInfo.getFileId(); String id = SarStandardsInfo.getFileId();
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), bid); String theSame = isTheSame(byId.getOldFileName(), bid);
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -2792,6 +2795,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
}else { }else {
List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId()); List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId());
if(!OldSystem1.isEmpty()){ if(!OldSystem1.isEmpty()){
@@ -2810,6 +2814,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = fileId; String id = fileId;
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId()); String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId());
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -2833,6 +2838,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
} else { } else {
int numberCount = 0; int numberCount = 0;
//只允许2个文件名称相同 //只允许2个文件名称相同
@@ -2926,6 +2932,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = SarStandardsInfo.getFileId(); String id = SarStandardsInfo.getFileId();
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId()); String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId());
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -2951,6 +2958,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
} }
@@ -3009,6 +3017,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = fileId; String id = fileId;
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(),bid); String theSame = isTheSame(byId.getOldFileName(),bid);
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3032,6 +3041,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
}
} else { } else {
int numberCount = 0; int numberCount = 0;
//只允许2个文件名称相同 //只允许2个文件名称相同
@@ -3124,6 +3134,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
}else { }else {
String id = SarStandardsInfo.getFileId(); String id = SarStandardsInfo.getFileId();
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), bid); String theSame = isTheSame(byId.getOldFileName(), bid);
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3151,6 +3162,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
}else { }else {
List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId()); List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(SarStandardsInfo.getBuildId());
if(!OldSystem1.isEmpty()){ if(!OldSystem1.isEmpty()){
@@ -3169,6 +3181,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = fileId; String id = fileId;
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId()); String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId());
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3192,6 +3205,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
} else { } else {
int numberCount = 0; int numberCount = 0;
//只允许2个文件名称相同 //只允许2个文件名称相同
@@ -3285,6 +3299,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = SarStandardsInfo.getFileId(); String id = SarStandardsInfo.getFileId();
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId()); String theSame = isTheSame(byId.getOldFileName(), SarStandardsInfo.getBuildId());
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3310,6 +3325,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
} }
@@ -3368,6 +3384,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = fileId; String id = fileId;
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(),bid); String theSame = isTheSame(byId.getOldFileName(),bid);
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3391,6 +3408,8 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
}
} else { } else {
int numberCount = 0; int numberCount = 0;
//只允许2个文件名称相同 //只允许2个文件名称相同
@@ -3483,6 +3502,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
}else { }else {
String id = sarBussionessStand.getFileId(); String id = sarBussionessStand.getFileId();
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), bid); String theSame = isTheSame(byId.getOldFileName(), bid);
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3510,6 +3530,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
}else { }else {
List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(sarBussionessStand.getBuildId()); List<OldSystem> OldSystem1 = sarStandardsInfoDao.selectOldSystemInfoByBuidId(sarBussionessStand.getBuildId());
if(!OldSystem1.isEmpty()){ if(!OldSystem1.isEmpty()){
@@ -3528,6 +3549,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = fileId; String id = fileId;
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), sarBussionessStand.getBuildId()); String theSame = isTheSame(byId.getOldFileName(), sarBussionessStand.getBuildId());
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3551,6 +3573,8 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
} else { } else {
int numberCount = 0; int numberCount = 0;
//只允许2个文件名称相同 //只允许2个文件名称相同
@@ -3644,6 +3668,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
//循环调用每一个 文件 获取文件名称 //循环调用每一个 文件 获取文件名称
String id = sarBussionessStand.getFileId(); String id = sarBussionessStand.getFileId();
AttFileEO byId = attFileEOService.getFileInfo(id); AttFileEO byId = attFileEOService.getFileInfo(id);
if(byId!=null){
String theSame = isTheSame(byId.getOldFileName(), sarBussionessStand.getBuildId()); String theSame = isTheSame(byId.getOldFileName(), sarBussionessStand.getBuildId());
if (theSame.equals("1")) { if (theSame.equals("1")) {
//证明找到文件名称一致的了 //证明找到文件名称一致的了
@@ -3670,6 +3695,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
} }
} }
} }
}
} }
if (StringUtils.isNotBlank(yi)) { if (StringUtils.isNotBlank(yi)) {