This commit is contained in:
雷欧(林平凡)
2025-01-09 18:03:49 +08:00
parent d155678636
commit 42606ce94e

View File

@@ -178,7 +178,7 @@ public class JDUtils {
/**
* 实时刷新最近10分钟的订单
*/
//@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
@Scheduled(cron = "0 * * * * ?") // 每分钟执行一次
public void fetchLatestOrder() {
LocalDateTime now = LocalDateTime.now();
LocalDateTime lastMinute = now.minusMinutes(10).withSecond(0).withNano(0);
@@ -274,7 +274,7 @@ public class JDUtils {
/**
* 一天拉取三次 30天到60天前的订单
*/
//@Scheduled(cron = "0 0 */4 * * ?")
@Scheduled(cron = "0 0 */4 * * ?")
public void fetchHistoricalOrders3090() {
for (Map.Entry<String, WXUtil.SuperAdmin> entry : super_admins.entrySet()) {
@@ -341,7 +341,7 @@ public class JDUtils {
/**
* 一天拉取6次 14天到30天前的订单
*/
//@Scheduled(cron = "0 0 * * * ?")
@Scheduled(cron = "0 0 * * * ?")
public void fetchHistoricalOrders1430() {
for (Map.Entry<String, WXUtil.SuperAdmin> entry : super_admins.entrySet()) {
//String wxid = entry.getKey();
@@ -405,7 +405,7 @@ public class JDUtils {
/**
* 每10分钟拉取07-14天的订单
*/
//@Scheduled(cron = "0 0 * * * ?")
@Scheduled(cron = "0 0 * * * ?")
public void fetchHistoricalOrders0714() {
for (Map.Entry<String, WXUtil.SuperAdmin> entry : super_admins.entrySet()) {
//String wxid = entry.getKey();
@@ -465,7 +465,7 @@ public class JDUtils {
return count;
}
//@Scheduled(cron = "0 * * * * ?")
@Scheduled(cron = "0 * * * * ?")
public void fetchHistoricalOrders0007() {
for (Map.Entry<String, WXUtil.SuperAdmin> entry : super_admins.entrySet()) {
//String wxid = entry.getKey();
@@ -635,7 +635,7 @@ public class JDUtils {
content.append("京高级SKU+sku\\r\"");
break;
case "测试指令":{
test01();
//test01();
break;
}
case "今日统计": {