非Q 的规则
This commit is contained in:
parent
648c2166d6
commit
8d560d9b4a
|
|
@ -185,6 +185,9 @@ public class CheckEBomException {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (BomNewEbomParentVO exItem : exceptionList) {
|
for (BomNewEbomParentVO exItem : exceptionList) {
|
||||||
|
if(Objects.isNull(exItem.getLevelNo())){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
List<String> parentByLevel = BomLevelUtil.getParentByLevel(exItem.getLevelNo());
|
List<String> parentByLevel = BomLevelUtil.getParentByLevel(exItem.getLevelNo());
|
||||||
List<BomNewEbomParentVO> warnList = allBomDetail.stream().filter(u -> !u.getVirtualPartType().equals(VirtualPackageTypeEnum.PRE_ASSEMBLY_PACKAGE.getValue()) && !u.getVirtualPartType().equals(VirtualPackageTypeEnum.DIRECT_DELIVERY_PACKAGE.getValue()) && u.getBomRowId() > 0 && parentByLevel.contains(u.getLevelNo()) && EBomExceptionStatusEnum.OK.equalsValue(u.getExceptionStatus())).collect(Collectors.toList());
|
List<BomNewEbomParentVO> warnList = allBomDetail.stream().filter(u -> !u.getVirtualPartType().equals(VirtualPackageTypeEnum.PRE_ASSEMBLY_PACKAGE.getValue()) && !u.getVirtualPartType().equals(VirtualPackageTypeEnum.DIRECT_DELIVERY_PACKAGE.getValue()) && u.getBomRowId() > 0 && parentByLevel.contains(u.getLevelNo()) && EBomExceptionStatusEnum.OK.equalsValue(u.getExceptionStatus())).collect(Collectors.toList());
|
||||||
for (BomNewEbomParentVO k :warnList) {
|
for (BomNewEbomParentVO k :warnList) {
|
||||||
|
|
|
||||||
|
|
@ -132,5 +132,11 @@ public class BaseGlobalExceptionHandle {
|
||||||
return ResultVO.error(e.getBindingResult().getFieldError().getDefaultMessage()) ;
|
return ResultVO.error(e.getBindingResult().getFieldError().getDefaultMessage()) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ExceptionHandler(NullPointerException.class)
|
||||||
|
public ResultVO<String> handleNullPointerException(NullPointerException ex) {
|
||||||
|
|
||||||
|
return ResultVO.error(STATE.Error, "系统错误,请联系管理员:"+ex.getMessage()) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue