‘linchangsheng’ преди 2 седмици
родител
ревизия
b49b325718
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/order/PayOrderLogic.java

+ 1 - 1
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/order/PayOrderLogic.java

@@ -1142,7 +1142,7 @@ public class PayOrderLogic {
 
                 Integer countWait = workerOrderService.lambdaQuery()
                         .ge(WorkerOrder::getTotalAmount, workerOrder.getTotalAmount())
-                        .eq(WorkerOrder::getPayStatus, PayStatusEnum.WAIT.getKey())
+                        .in(WorkerOrder::getPayStatus, PayStatusEnum.WAIT.getKey(),PayStatusEnum.PAID.getKey())
                         .eq(WorkerOrder::getWorkerOrderId, workerOrder.getWorkerOrderId())
                         .count();