Browse Source

👎 修改自动收货的字段错误

sj
Loki 2 years ago
parent
commit
51be61b741
  1. 2
      zsw-bxg/src/main/java/co/yixiang/job/AutoReceiptJob.java

2
zsw-bxg/src/main/java/co/yixiang/job/AutoReceiptJob.java

@ -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 -> {

Loading…
Cancel
Save