Procházet zdrojové kódy

删除查询订单

yq před 2 roky
rodič
revize
b73405d3ca

+ 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){