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

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

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

Loading…
Cancel
Save