定时任务错峰
This commit is contained in:
parent
0f943ad91b
commit
c22bd6ee77
|
|
@ -37,7 +37,7 @@ public class OrderTask {
|
|||
@Resource
|
||||
private PayDetailsDao payDetailsDao;
|
||||
|
||||
@Scheduled(cron = "0 1 * * * ? ")
|
||||
@Scheduled(cron = "0 7/5 * * * ? ")
|
||||
public void record() {
|
||||
record1();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue