1
zhang
5 天以前 7b971409fa868cef49fb009645db5c3e31eb2565
zy-acs-manager/src/main/java/com/zy/acs/manager/core/scheduler/AutoRunScheduler.java
@@ -21,6 +21,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.util.StopWatch;
import java.util.*;
@@ -64,6 +65,8 @@
        if (!configService.getVal("TaskAssignMode", Boolean.class)) { return; }
        String autoRunAreas = configService.getVal("autoRunAreas", String.class);
        StopWatch stopWatch=new StopWatch();
        stopWatch.start();
        if (Cools.isEmpty(autoRunAreas)) { return; }
        for (char c : autoRunAreas.toCharArray()) {
            switch (c) {
@@ -86,6 +89,8 @@
                    break;
            }
        }
        stopWatch.stop();
        log.info("耗时:{}",stopWatch.getTotalTimeMillis());
    }
    private void autoRun(List<Integer> locGroupList, List<String> staGroupList, List<String> agvGroupList) {