Browse Source

2022-08-11 结束卷不在限制材料的耗用数量

master
rui_li 4 years ago
parent
commit
dda8497108
  1. 4
      src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java

4
src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java

@ -2044,8 +2044,8 @@ public class ScheduleServiceImpl implements ScheduleService {
if (netIssueQty == null) { if (netIssueQty == null) {
throw new XJException("材料上本卷耗用数量不能为空!"); throw new XJException("材料上本卷耗用数量不能为空!");
} }
if (netIssueQty <= 0) {
throw new XJException("材料上本卷耗用数量必须大于0!");
if (netIssueQty < 0) {
throw new XJException("材料上本卷耗用数量必须大于等于0!");
} }
if (netIssueQty > transQty) { if (netIssueQty > transQty) {
throw new XJException("材料上本卷耗用数量大于发料数量!"); throw new XJException("材料上本卷耗用数量大于发料数量!");

Loading…
Cancel
Save