备料计划转出库申请-优化申请数量校验及异常处理

This commit is contained in:
mzr 2025-04-02 11:38:08 +08:00
parent c0d300fb62
commit afc8bff1c4
1 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ public class N_4455_WRITE extends AbstractCompiler2 {
));
UFDouble applyNum1 = applyNum.add(bodyVO.getNassistnum());
if (MathTool.compareTo(plantNum, applyNum1) < 0) {
nccloud.framework.core.exception.ExceptionUtils.wrapBusinessException("申请数量已超出计划数量,请检查!");
throw new BusinessException("申请数量已超出计划数量,请检查!");
}
}
}
@ -112,8 +112,8 @@ public class N_4455_WRITE extends AbstractCompiler2 {
return retunVos;
}
} catch (Exception var8) {
ExceptionUtils.marsh(var8);
} catch (Exception e) {
ExceptionUtils.marsh(e);
return null;
}
}