guarantee-lsq il y a 1 an
Parent
commit
8157c7ef75

+ 1 - 0
platform-common/src/main/java/com/platform/common/constant/CommonConstants.java

@@ -331,6 +331,7 @@ public interface CommonConstants {
     int NO_PLAN_FLAG = 2; // 非计划性维修
     int OTHER = 3; // 其他
     int NORMAL = 4; // 日常维修
+    int SIMPLE_REPAIR = 5; // 简易维修流程
 
 
     // 打印类型

+ 3 - 0
platform-service/src/main/java/com/platform/service/repair/strategy/RepairStrategyFactory.java

@@ -45,6 +45,9 @@ public class RepairStrategyFactory {
             case CommonConstants.NORMAL:
                 strategy = (LongYanPlanRepairStrategy)BeanUtils.getBean("longYanPlanRepairStrategy");
                 break;
+            case CommonConstants.SIMPLE_REPAIR:
+                strategy = (AllocateRepairBaseStrategy)BeanUtils.getBean("allocateRepairBaseStrategy");
+                break;
         }
         return strategy;
     }