Pu Zhibing
17 小时以前 574cd41b6e4aa65426c7597297aa94f6259d6666
UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/crossCity/server/impl/OrderCrossCityServiceImpl.java
@@ -1516,7 +1516,7 @@
         return ResultUtil.error("取消订单失败,订单信息有误", "");
      }
      if (orderCrossCity.getState() != 12) {
         return ResultUtil.error("取消订单失败,不合法的操作", "");
         return ResultUtil.error("订单已取消,请刷新页面", "");
      }
      OrderCancel orderCancel = null;
      if (null == cancleId) {
@@ -1978,7 +1978,7 @@
         return ResultUtil.error("取消订单失败,订单信息有误");
      }
      if (orderCrossCity.getState() >= 5 && orderCrossCity.getState() != 7 && orderCrossCity.getState() != 11) {
         return ResultUtil.error("取消订单失败,不合法的操作");
         return ResultUtil.error("订单已取消,请刷新页面");
      }
      
      //还原座位
@@ -2459,6 +2459,14 @@
                        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);//中断线程