| | |
| | | return ResultUtil.error("取消订单失败,订单信息有误", ""); |
| | | } |
| | | if (orderCrossCity.getState() != 12) { |
| | | return ResultUtil.error("取消订单失败,不合法的操作", ""); |
| | | return ResultUtil.error("订单已取消,请刷新页面", ""); |
| | | } |
| | | OrderCancel orderCancel = null; |
| | | if (null == cancleId) { |
| | |
| | | return ResultUtil.error("取消订单失败,订单信息有误"); |
| | | } |
| | | if (orderCrossCity.getState() >= 5 && orderCrossCity.getState() != 7 && orderCrossCity.getState() != 11) { |
| | | return ResultUtil.error("取消订单失败,不合法的操作"); |
| | | return ResultUtil.error("订单已取消,请刷新页面"); |
| | | } |
| | | |
| | | //还原座位 |
| | |
| | | if (state != 1) { |
| | | //关闭其他推送线程 |
| | | Set<String> keySet = threadMap.keySet(); |
| | | datas.forEach(e->{ |
| | | threadMap.get(orderId + "_1"); |
| | | |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | for (String key : keySet) { |
| | | if (!key.equals(orderId + "_1")) { |
| | | Thread thread1 = threadMap.get(key);//中断线程 |