소스 검색

调度排程优化

fangpy 5 달 전
부모
커밋
80efcc4e57
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rw-aps-server/src/main/java/com/rongwei/rwapsserver/aps/service/impl/ProductionScheduleServiceImpl.java

+ 2 - 2
rw-aps-server/src/main/java/com/rongwei/rwapsserver/aps/service/impl/ProductionScheduleServiceImpl.java

@@ -74,9 +74,9 @@ public class ProductionScheduleServiceImpl implements ProductionScheduleService
         if(maxPlanSeconds == null || maxPlanSeconds <= 0){
             maxPlanSeconds = 1800;
         }
-        if(runPlanSeconds > maxPlanSeconds){
+        /*if(runPlanSeconds > maxPlanSeconds){
             throw new ApsException("所选排程作业太多,预计排程时间太长,请分开排程");
-        }
+        }*/
 //        int runPlanSeconds = maxPlanSeconds;
         EnvironmentMode mode = EnvironmentMode.REPRODUCIBLE;
         if(productionScheduleVo.getEnvironmentMode() != null && productionScheduleVo.getEnvironmentMode() == 1){