瀏覽代碼

测试格式化

xusl 3 年之前
父節點
當前提交
a6cf64032f

+ 25 - 0
ipfcst-console/src/main/java/com/jiayue/ipfcst/console/job/ForecastPowerUltraShortTermJob.java

@@ -0,0 +1,25 @@
+package com.jiayue.ipfcst.console.job;
+
+import com.jiayue.ipfcst.console.service.ForecastPowerUltraShortTermService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Service;
+
+/**
+ * 超短期执行任务
+ *
+ * @author zzy
+ * @version 3.0
+ */
+@Service
+@EnableScheduling
+public class ForecastPowerUltraShortTermJob {
+  @Autowired
+  private ForecastPowerUltraShortTermService forecastPowerUltraShortTermService;
+
+  @Scheduled(fixedDelay = 60000)
+  public void executeForecast() {
+    this.forecastPowerUltraShortTermService.executeForecast();
+  }
+}