This commit is contained in:
Leo
2025-02-08 23:20:53 +08:00
parent 8fa377fb99
commit 8589460fa5

View File

@@ -254,9 +254,9 @@ public class JDUtil {
* 扫描订单发送到微信
* 每分钟的30秒执行一次
*/
@Scheduled(cron = "*/2 * * * * ?")
@Scheduled(cron = "10 * * * * ?")
public void sendOrderToWx() {
//long start = System.currentTimeMillis();
long start = System.currentTimeMillis();
int[] validCodes = {-1};
// 只要三个月的,更多的也刷新不出来的
Date threeMonthsAgo = Date.from(LocalDateTime.now().minusMonths(3).atZone(ZoneId.systemDefault()).toInstant());
@@ -268,7 +268,7 @@ public class JDUtil {
}
//logger.info("扫描订单发送到微信耗时:{} ms, 订单数:{} ", System.currentTimeMillis() - start, orderRows.size());
logger.info("扫描订单发送到微信耗时:{} ms, 订单数:{} ", System.currentTimeMillis() - start, orderRows.size());
}