1
This commit is contained in:
@@ -177,7 +177,7 @@ public class JDUtils {
|
|||||||
* 实时刷新最近10分钟的订单
|
* 实时刷新最近10分钟的订单
|
||||||
*/
|
*/
|
||||||
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
|
||||||
public void fetchLatestOrder() throws Exception {
|
public void fetchLatestOrder() {
|
||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
LocalDateTime lastMinute = now.minusMinutes(10).withSecond(0).withNano(0);
|
LocalDateTime lastMinute = now.minusMinutes(10).withSecond(0).withNano(0);
|
||||||
|
|
||||||
@@ -392,7 +392,7 @@ public class JDUtils {
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 */10 * * * ?")
|
@Scheduled(cron = "0 * * * * ?")
|
||||||
public void fetchHistoricalOrders0007() {
|
public void fetchHistoricalOrders0007() {
|
||||||
fetchHistoricalOrders0007Do();
|
fetchHistoricalOrders0007Do();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user