update:
1.fix
This commit is contained in:
@@ -34,13 +34,11 @@ import java.util.List;
|
||||
public class AliUserOrderCloseProcessor implements BasicProcessor {
|
||||
|
||||
|
||||
|
||||
private final ICommonUserOrderService commonUserOrderService;
|
||||
private final IPaymentService paymentService;
|
||||
private final IOrderService orderService;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ProcessResult process(TaskContext taskContext) throws Exception {
|
||||
|
||||
@@ -56,7 +54,7 @@ public class AliUserOrderCloseProcessor implements BasicProcessor {
|
||||
Wrappers.lambdaQuery(CommonUserOrderEntity.class)
|
||||
.eq(CommonUserOrderEntity::getPaymentStatus, PaymentStatus.UNPAID.getCode())
|
||||
.eq(CommonUserOrderEntity::getOrderStatus, OrderStatus.PENDING_PAYMENT.getCode())
|
||||
.ne(CommonUserOrderEntity::getPaymentType, PaymentType.OFFLINE.getCode()) // 只查询支付宝和微信
|
||||
.in(CommonUserOrderEntity::getPaymentType, List.of(PaymentType.ALI.getCode(), PaymentType.WECHAT.getCode())) // 只查询支付宝和微信
|
||||
.le(CommonUserOrderEntity::getCreateTime, expireTime)
|
||||
.orderByAsc(CommonUserOrderEntity::getCreateTime)
|
||||
.last("LIMIT " + batchSize)
|
||||
@@ -117,5 +115,4 @@ public class AliUserOrderCloseProcessor implements BasicProcessor {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user