瀏覽代碼

删除查询订单

yq 2 年之前
父節點
當前提交
b73405d3ca
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/main/java/com/usky/dxtop/service/impl/OrderServiceImpl.java

+ 3 - 4
src/main/java/com/usky/dxtop/service/impl/OrderServiceImpl.java

@@ -220,15 +220,14 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
 
     /**
      * 校验是否继续处理订单
-     * @param orderNumber
+     * @param order
      * @return
      */
-    public boolean isCheckOrder(String orderNumber){
-        if (map.putIfAbsent(orderNumber, orderNumber) != null){
+    public boolean isCheckOrder(Order order){
+        if (map.putIfAbsent(order.getOrderNumber(), order.getOrderNumber()) != null){
             return false;
         }
         try {
-            Order order = one(orderNumber);
             //订单是未支付和支付中需要处理
             boolean isCheck = OrderStatus.NO_PAYMENT.getCode().equals(order.getOrderFlag()) || OrderStatus.AWAIT_PAY.getCode().equals(order.getOrderFlag());
             if (isCheck){