| | |
| | | operateTrafficControl(param); |
| | | |
| | | applyRecordsMap.remove(shuttleNo); |
| | | redisUtil.set(RedisKeyType.TRAFFIC_CONTROL_SUCCESS_APPLY.key + shuttleNo + "_" + taskNo, 1, 60 * 60); |
| | | News.info("receipt traffic {},{}", shuttleNo, taskNo); |
| | | return true; |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public synchronized boolean cancelTrafficControl(Integer shuttleNo, Integer taskNo) { |
| | | public boolean cancelTrafficControl(Integer shuttleNo, Integer taskNo) { |
| | | TrafficControlDataModel dataModel = queryTrafficControl(shuttleNo, taskNo); |
| | | if (dataModel == null) { |
| | | return false; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public synchronized boolean forceCancelTrafficControl(Integer shuttleNo) { |
| | | public boolean forceCancelTrafficControl(Integer shuttleNo) { |
| | | TrafficControlDataModel dataModel = queryTrafficControl(shuttleNo); |
| | | if (dataModel == null) { |
| | | return false; |