|
|
@ -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()订单失效处理结束......");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|