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