异常调整

This commit is contained in:
jing's 2024-01-02 20:51:27 +08:00
parent 47a7940789
commit e091b61255
1 changed files with 14 additions and 2 deletions

View File

@ -417,8 +417,19 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
//保存异常
saveException(checkEBomException);
// initBomException(list,new String[]{});
}
public void initBomException(List<BomNewEbomParentVO> list, String ... ignorePropertyList) {
CheckEBomException checkEBomException = new CheckEBomException(list);
checkEBomException.initException(ignorePropertyList);
//保存异常
saveException(checkEBomException);
}
public void checkBomException(List<BomNewEbomParentVO> list) {
CheckEBomException checkEBomException = new CheckEBomException(list);
checkEBomException.checkException();
@ -1326,7 +1337,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
"projectType",
"procureType",
"materialUnit",
"material",
"material",
"materialTexture",
"materialGetType"
};
@ -1337,7 +1348,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
// CheckEBomException checkEBomException = new CheckEBomException(checkBom);
// checkEBomException.checkException();
this.initBomException(checkBom);
// this.initBomException(checkBom);
checkBomException(checkBom);
if(CollectionUtil.isNotEmpty(dto.getDatas())){
for (BomNewEbomParentVO vo:
dto.getDatas()) {