This commit is contained in:
雷欧(林平凡)
2025-01-07 13:49:36 +08:00
parent ed6ee47d53
commit 8dc4f2d170

View File

@@ -207,9 +207,9 @@ public class JDUtils {
* 扫描订单发送到微信
* 每分钟的30秒执行一次
*/
@Scheduled(cron = "*/10 * * * * ?")
@Scheduled(cron = "*/2 * * * * ?")
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());
@@ -221,7 +221,7 @@ public class JDUtils {
}
logger.info("扫描订单发送到微信耗时:{} ms, 订单数:{} ", System.currentTimeMillis() - start, orderRows.size());
//logger.info("扫描订单发送到微信耗时:{} ms, 订单数:{} ", System.currentTimeMillis() - start, orderRows.size());
}