‘linchangsheng’ hace 2 semanas
padre
commit
b49b325718

+ 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();