|
|
|
@ -40,7 +40,7 @@ public class AutoReceiptJob implements JobHandler {
|
|
|
|
|
List<YxStoreOrder> orders = storeOrderService.list(new LambdaQueryWrapper<YxStoreOrder>() |
|
|
|
|
.eq(YxStoreOrder::getPaid, OrderInfoEnum.PAY_STATUS_1.getValue()) |
|
|
|
|
.eq(YxStoreOrder::getStatus, OrderInfoEnum.STATUS_1.getValue()) |
|
|
|
|
.apply("TIMESTAMPDIFF(dat,pay_time,{0}) > 7 ",LocalDateTime.now()) |
|
|
|
|
.apply("TIMESTAMPDIFF(day,pay_time,{0}) > 7 ",LocalDateTime.now()) |
|
|
|
|
); |
|
|
|
|
num.updateAndGet(v -> v + orders.size()); |
|
|
|
|
orders.forEach(yxStoreOrder -> { |
|
|
|
|