luobang 2 năm trước cách đây
mục cha
commit
f3931d2cc8

+ 1 - 1
src/main/java/com/steerinfo/dil/service/impl/TmstruckLeaveFactoryResultServiceImpl.java

@@ -212,7 +212,7 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
                 Double saleWeight = tmstruckLeaveFactoryResultMapper.getSaleMaterialWeight(saleOrderId);
                 //判断当前订单是否可出厂
                 Integer canWork = tmstruckLeaveFactoryResultMapper.getCanWorkStatus(DataChange.dataToBigDecimal(mesMap.get("orderId")));
-                if (allNetWeight + nowNetWeight > saleWeight) {
+                if (allNetWeight + nowNetWeight > saleWeight && canWork == null) {
                     throw new Exception("该销售订单吨位已超额,不允许出厂,请提醒司机走流程卸货!");
                 }
             }

+ 10 - 0
src/main/java/com/steerinfo/dil/util/Test.java

@@ -0,0 +1,10 @@
+package com.steerinfo.dil.util;
+
+public class Test {
+    public static void main(String[] args) {
+        Integer a = null;
+        if(false || a== null){
+
+        }
+    }
+}