1
This commit is contained in:
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user