| | |
| | | List<TrafficControlDataModel> allTrafficControl = getAllTrafficControl(); |
| | | //更新交管信息 |
| | | redisUtil.set(RedisKeyType.TRAFFIC_CONTROL_MAP.key, allTrafficControl); |
| | | |
| | | for (TrafficControlDataModel dataModel : allTrafficControl) { |
| | | Integer shuttleNo = dataModel.getShuttleNo(); |
| | | Integer taskNo = dataModel.getTaskNo(); |
| | | |
| | | Object object1 = redisUtil.get(RedisKeyType.TRAFFIC_CONTROL_SUCCESS_APPLY.key + shuttleNo + "_" + taskNo); |
| | | if(object1 == null) { |
| | | redisUtil.set(RedisKeyType.TRAFFIC_CONTROL_SUCCESS_APPLY.key + shuttleNo + "_" + taskNo, 1, 60 * 60); |
| | | } |
| | | } |
| | | |
| | | Thread.sleep(200); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | //检测障碍物车 |
| | | boolean checkObstacle = shuttleOperaUtils.checkObstacle(shuttleProtocol.getCurrentLocNo(), new ArrayList<Integer>() {{ |
| | | add(shuttleNo); |
| | | }}); |
| | | }}, totalNodeList); |
| | | pathIdleShuttleMap.remove(shuttleProtocol.getShuttleNo()); |
| | | } |
| | | }else { |
| | |
| | | } |
| | | |
| | | trafficControlDataList.remove(idx);//取消管制 |
| | | redisUtil.del(RedisKeyType.TRAFFIC_CONTROL_SUCCESS_APPLY.key + shuttleNo + "_" + taskNo); |
| | | return true; |
| | | } |
| | | |