| | |
| | | |
| | | private static final String CRN_OUT_REQUIRE_STATION_OUT_ENABLE_CONFIG = "crnOutRequireStationOutEnable"; |
| | | |
| | | public synchronized void crnIoExecute() { |
| | | List<BasCrnp> basCrnps = basCrnpService.list(new QueryWrapper<>()); |
| | | for (BasCrnp basCrnp : basCrnps) { |
| | | crnIoExecute(basCrnp); |
| | | } |
| | | } |
| | | |
| | | public void crnIoExecute(BasCrnp basCrnp) { |
| | | if (basCrnp == null || basCrnp.getCrnNo() == null) { |
| | | return; |
| | |
| | | return defaultValue; |
| | | } |
| | | |
| | | //堆垛机任务执行完成 |
| | | public synchronized void crnIoExecuteFinish() { |
| | | List<BasCrnp> basCrnps = basCrnpService.list(new QueryWrapper<>()); |
| | | for (BasCrnp basCrnp : basCrnps) { |
| | | crnIoExecuteFinish(basCrnp); |
| | | } |
| | | } |
| | | |
| | | public void crnIoExecuteFinish(BasCrnp basCrnp) { |
| | | if (basCrnp == null || basCrnp.getCrnNo() == null) { |
| | | return; |
| | |
| | | } |
| | | |
| | | redisUtil.set(RedisKeyType.CRN_IO_EXECUTE_FINISH_LIMIT.key + basCrnp.getCrnNo(), "lock",10); |
| | | } |
| | | } |
| | | |
| | | public synchronized void plannerExecute() { |
| | | List<BasCrnp> basCrnps = basCrnpService.list(new QueryWrapper<>()); |
| | | for (BasCrnp basCrnp : basCrnps) { |
| | | plannerExecute(basCrnp); |
| | | } |
| | | } |
| | | |