|
@@ -32,6 +32,8 @@ public class AnalysisTask {
|
|
|
private EquipmentInfo2Service equipmentInfo2Service;
|
|
|
@Autowired
|
|
|
private EquipmentInfo4Service equipmentInfo4Service;
|
|
|
+ @Autowired
|
|
|
+ private EquipmentInfo1Service equipmentInfo1Service;
|
|
|
|
|
|
@Resource
|
|
|
@Qualifier("taskScheduler") // 指定使用特定的 TaskScheduler
|
|
@@ -94,6 +96,20 @@ public class AnalysisTask {
|
|
|
// 每15分钟 - 设备指标2
|
|
|
@Async
|
|
|
@Scheduled(cron = "0 0/15 * * * ?")
|
|
|
+ public void sbzb1() {
|
|
|
+ try {
|
|
|
+ logger.info("设备指标1调度程序执行开始");
|
|
|
+ Date date = new Date();
|
|
|
+ equipmentInfo1Service.calEquipmentInfoDay(date);
|
|
|
+ logger.info("设备指标1调度程序执行完成");
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("设备指标1调度任务执行失败", e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 每15分钟 - 设备指标2
|
|
|
+ @Async
|
|
|
+ @Scheduled(cron = "0 0/15 * * * ?")
|
|
|
public void sbzb2() {
|
|
|
try {
|
|
|
logger.info("设备指标2调度程序执行开始");
|