This commit is contained in:
雷欧(林平凡)
2025-01-09 09:33:36 +08:00
parent 0f4dc7599f
commit f8a62e6c3d

View File

@@ -177,7 +177,7 @@ public class JDUtils {
* 实时刷新最近10分钟的订单
*/
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
public void fetchLatestOrder() throws Exception {
public void fetchLatestOrder() {
LocalDateTime now = LocalDateTime.now();
LocalDateTime lastMinute = now.minusMinutes(10).withSecond(0).withNano(0);
@@ -392,7 +392,7 @@ public class JDUtils {
return count;
}
@Scheduled(cron = "0 */10 * * * ?")
@Scheduled(cron = "0 * * * * ?")
public void fetchHistoricalOrders0007() {
fetchHistoricalOrders0007Do();
}