Update OrderTimeOutCancelTask.java
This commit is contained in:
@@ -19,7 +19,7 @@ public class OrderTimeOutCancelTask {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* cron表达式:Seconds Minutes Hours DayofMonth Month DayofWeek [Year]
|
* cron表达式:Seconds Minutes Hours DayofMonth Month DayofWeek [Year]
|
||||||
* 每10分钟扫描一次,扫描设定超时时间之前下的订单,如果没支付则取消该订单
|
* 每10分钟扫描一次,扫描超时未支付订单,进行取消操作
|
||||||
*/
|
*/
|
||||||
@Scheduled(cron = "0 0/10 * ? * ?")
|
@Scheduled(cron = "0 0/10 * ? * ?")
|
||||||
private void cancelTimeOutOrder(){
|
private void cancelTimeOutOrder(){
|
||||||
|
|||||||
Reference in New Issue
Block a user