[update]删除自动取消订单功能

master
NH-LHG 1 year ago
parent 8619d730ef
commit 8290f02646

@ -24,16 +24,16 @@ public class JeecgJobServiceImpl implements JeecgJobService {
*/ */
@Override @Override
@Async @Async
@Scheduled(cron = "0 */5 * * * ?") @Scheduled(cron = "0 */50 * * * ?")
public void autoCancelOrder() { public void autoCancelOrder() {
log.info("执行autoCancelOrder()订单失效处理开始......"); log.info("执行autoCancelOrder()订单失效处理开始......");
List<Order> orderList = iOrderService.getTimeoutOrder(); //List<Order> orderList = iOrderService.getTimeoutOrder();
if (null != orderList && orderList.size() > 0) { //if (null != orderList && orderList.size() > 0) {
orderList.forEach(e -> { //orderList.forEach(e -> {
e.setState(5); //e.setState(5);
}); //});
iOrderService.saveOrUpdateBatch(orderList); //iOrderService.saveOrUpdateBatch(orderList);
} //}
log.info("执行autoCancelOrder()订单失效处理结束......"); log.info("执行autoCancelOrder()订单失效处理结束......");
} }
} }

Loading…
Cancel
Save