donglang пре 1 месец
родитељ
комит
4fe2f6a187

+ 1 - 1
sckw-common/sckw-common-core/src/main/java/com/sckw/core/model/enums/GatekeeperTypeEnum.java

@@ -22,7 +22,7 @@ public enum GatekeeperTypeEnum {
     /**
      * 门卫卸货单
      */
-    UNLOADING(5,  "门卫卸货单"),
+    UNLOADING(2,  "门卫卸货单"),
 
     ;
 

+ 1 - 1
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/handler/UnloadingWeighHandler.java

@@ -115,7 +115,7 @@ public class UnloadingWeighHandler extends AbstractWaybillOrderHandler<WaybillOr
         if (gatekeeper == null) {
             throw new BusinessPlatfromException(ErrorCodeEnum.GATEKEEPER_ORDER_NOT_FOUND, "当前门卫订单数据不存在!");
         }
-        if (!(GatekeeperStatusEnum.IN_YARD.getCode().equals(gatekeeper.getStatus()))) {
+        if (!(GatekeeperStatusEnum.PENDING_ENTRY.getCode().equals(gatekeeper.getStatus()))) {
             throw new BusinessPlatfromException(ErrorCodeEnum.GATEKEEPER_ORDER_STATUS_ERROR, "当前门卫订单状态异常,不能推进为待放行状态!");
         }
         //修改门卫:待放行