diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java index b28946e..6ffe75a 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesProductOrderServiceImpl.java @@ -72,7 +72,9 @@ public class MesProductOrderServiceImpl implements IMesProductOrderService { @Override public int updateMesProductOrder(MesProductOrder mesProductOrder) { //销售订单修改工单:校验是否超出销售数量 - if (mesProductOrder.getSaleOrderFlag().equals("1") && StringUtils.isNotNull(mesProductOrder.getSaleOrderId())) { + if (StringUtils.isNotEmpty(mesProductOrder.getSaleOrderFlag()) + && mesProductOrder.getSaleOrderFlag().equals("1") + && StringUtils.isNotNull(mesProductOrder.getSaleOrderId())) { checkSalesQuantity(mesProductOrder); } mesProductOrder.setUpdateTime(DateUtils.getNowDate()); diff --git a/hw-ui/src/views/mes/productplan/editProductPlan.vue b/hw-ui/src/views/mes/productplan/editProductPlan.vue index 5fc594a..d039b50 100644 --- a/hw-ui/src/views/mes/productplan/editProductPlan.vue +++ b/hw-ui/src/views/mes/productplan/editProductPlan.vue @@ -190,7 +190,7 @@