定时任务错峰

This commit is contained in:
wangw 2025-08-21 17:13:29 +08:00
parent 0f943ad91b
commit c22bd6ee77
3 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ public class OrderTask {
@Resource
private PayDetailsDao payDetailsDao;
@Scheduled(cron = "0 1 * * * ? ")
@Scheduled(cron = "0 7/5 * * * ? ")
public void record() {
record1();
}

View File

@ -47,7 +47,7 @@ public class TempCashOutTask {
private Logger logger = LoggerFactory.getLogger(getClass());
@Scheduled(cron = "0 0/8 * * * ? ")
@Scheduled(cron = "0 4/5 * * * ? ")
public void run() {
List<CashOut> cashOuts = cashOutDao.selectTemp(DateUtil.offsetMinute(DateUtil.date(), 15));
logger.info("定时查询提现订单 待处理订单: {}", cashOuts.size());

View File

@ -100,7 +100,7 @@ public class TempOrdersTask {
this.userInfoService = userInfoService;
}
@Scheduled(cron = "0 0/10 * * * ? ")
@Scheduled(cron = "0 2/10 * * * ? ")
public void order() {
// if (!"pay".equals(profiles)) {
// return;