1.国网上送代码调整
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.njcn.system.timer.tasks;
|
||||
|
||||
import com.njcn.device.pms.api.MonitorSendClient;
|
||||
import com.njcn.device.pms.pojo.param.MonitorParam;
|
||||
import com.njcn.system.service.SysDicTreePOService;
|
||||
import com.njcn.system.timer.TimerTaskRunner;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class MonitorSendTaskRunner implements TimerTaskRunner {
|
||||
|
||||
private final MonitorSendClient monitorSendClient;
|
||||
private final SysDicTreePOService sysDicTreePOService;
|
||||
|
||||
|
||||
@Override
|
||||
public void action() {
|
||||
//风电场
|
||||
MonitorParam.Info param = new MonitorParam.Info();
|
||||
param.setObjType(sysDicTreePOService.queryByCode("1401").getId());
|
||||
monitorSendClient.windSend(param);
|
||||
//光伏电站
|
||||
MonitorParam.Info param1 = new MonitorParam.Info();
|
||||
param1.setObjType(sysDicTreePOService.queryByCode("1402").getId());
|
||||
monitorSendClient.windSend(param1);
|
||||
//牵引站
|
||||
MonitorParam.Info param3 = new MonitorParam.Info();
|
||||
param3.setObjType(sysDicTreePOService.queryByCode("1300").getId());
|
||||
monitorSendClient.windSend(param3);
|
||||
//干扰用户
|
||||
MonitorParam.Info param4 = new MonitorParam.Info();
|
||||
param4.setObjType(sysDicTreePOService.queryByCode("2300").getId());
|
||||
monitorSendClient.windSend(param4);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.system.timer.tasks;
|
||||
|
||||
import com.njcn.device.pms.api.MonitorSendClient;
|
||||
import com.njcn.device.pms.pojo.param.MonitorParam;
|
||||
import com.njcn.system.service.SysDicTreePOService;
|
||||
import com.njcn.system.timer.TimerTaskRunner;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class MonitorUserSendTaskRunner implements TimerTaskRunner {
|
||||
|
||||
private final MonitorSendClient monitorSendClient;
|
||||
private final SysDicTreePOService sysDicTreePOService;
|
||||
|
||||
|
||||
@Override
|
||||
public void action() {
|
||||
//重要或敏感用户
|
||||
MonitorParam.Info param2 = new MonitorParam.Info();
|
||||
param2.setObjType(sysDicTreePOService.queryByCode("2400").getId());
|
||||
monitorSendClient.windSend(param2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user