Browse Source

#定时任务注解修改

zhongwei
yang_shj 3 months ago
parent
commit
1a999e9ce9
  1. 5
      hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java
  2. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/vRView/scheduled/TimeTask.java

5
hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/scheduled/RealTargetScheduledTask.java

@ -47,9 +47,8 @@ public class RealTargetScheduledTask {
* 水电站-机组实时加载 * 水电站-机组实时加载
*/ */
//@XxlJob(LOAD_HYDROPOWER_UNIT_REAL) //@XxlJob(LOAD_HYDROPOWER_UNIT_REAL)
@Scheduled(cron = "0/40 * * * * ? ") //@Scheduled(cron = "0/40 * * * * ? ")
public ReturnT<String> loadHydropowerReal() { public ReturnT<String> loadHydropowerReal(String param) {
String param = "";
if (Func.isBlank(param)) { if (Func.isBlank(param)) {
param = DateUtil.format(new Date(), "yyyy-MM"); param = DateUtil.format(new Date(), "yyyy-MM");
} }

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/vRView/scheduled/TimeTask.java

@ -17,9 +17,9 @@ public class TimeTask {
/** /**
* 定时获取热点数据 * 定时获取热点数据
*/ */
@Scheduled(cron = "0/10 * * * * ?") //@Scheduled(cron = "0/10 * * * * ?")
//@XxlJob(TASK_TIMING_PUSH_HOT_SPOT_DATA) @XxlJob(TASK_TIMING_PUSH_HOT_SPOT_DATA)
public ReturnT<String> getTimingPushHotSpotData() throws Exception { public ReturnT<String> getTimingPushHotSpotData(String param) throws Exception {
HzWebSocketServer webSocketSet = new HzWebSocketServer(); HzWebSocketServer webSocketSet = new HzWebSocketServer();
try { try {
webSocketSet.sendFind(); webSocketSet.sendFind();

Loading…
Cancel
Save