fix:关闭A股定时任务

This commit is contained in:
xiaoliuhu
2023-12-04 18:14:44 +08:00
parent 93fc03bfa9
commit 354399856f

View File

@@ -37,7 +37,7 @@ import cn.stock.market.web.config.Config;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
@Component //@Component
public class StockTask { public class StockTask {
@Autowired RealtimeRepository realtimeRepository; @Autowired RealtimeRepository realtimeRepository;
@Autowired StockRepository stockRepository; @Autowired StockRepository stockRepository;
@@ -202,7 +202,7 @@ public class StockTask {
} }
/*同步股票列表*/ /*同步股票列表*/
@Scheduled(cron = "0 5 6 * * ?") // @Scheduled(cron = "0 5 6 * * ?")
public void syncBjsStockList() { public void syncBjsStockList() {
MdcUtil.setTraceIdIfAbsent(); MdcUtil.setTraceIdIfAbsent();
boolean flag = true; boolean flag = true;