交易日检查前需要更新交易日历
This commit is contained in:
@@ -45,6 +45,9 @@ public class UpdatePlanJob implements Job, InterruptableJob {
|
||||
|
||||
// 交易日检查
|
||||
if (plan.getOpenDayCheck()) {
|
||||
// 如果是交易日检查,要确保交易日历数据都是最新的
|
||||
stockCalendarService.updateData();
|
||||
|
||||
Boolean todayIsOpen = stockCalendarService.todayIsOpen();
|
||||
if (!todayIsOpen) {
|
||||
log.info("任务 [{}]{} 开启了交易日检查,当日非交易日,忽略任务", plan.getId(), plan.getName());
|
||||
|
||||
Reference in New Issue
Block a user