| | |
| | | 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.*; |
| | | |
| | |
| | | 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) { |
| | |
| | | break; |
| | | } |
| | | } |
| | | stopWatch.stop(); |
| | | log.info("耗时:{}",stopWatch.getTotalTimeMillis()); |
| | | } |
| | | |
| | | private void autoRun(List<Integer> locGroupList, List<String> staGroupList, List<String> agvGroupList) { |