智能电表水表定时更新接口
This commit is contained in:
parent
7a7284e5ac
commit
eff9b39f10
|
@ -8,7 +8,7 @@ import org.quartz.JobExecutionException;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* 表设备状态信息同步
|
||||
* 采集器状态信息同步
|
||||
*/
|
||||
@Slf4j
|
||||
public class CollectorDataJob implements Job {
|
||||
|
@ -16,6 +16,11 @@ public class CollectorDataJob implements Job {
|
|||
@Autowired
|
||||
ITqDeviceInfoService service;
|
||||
|
||||
/**
|
||||
* 5分钟一次
|
||||
* @param jobExecutionContext
|
||||
* @throws JobExecutionException
|
||||
*/
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
service.getAllCollector(true);
|
||||
|
|
|
@ -16,6 +16,11 @@ public class MeterStatusJob implements Job {
|
|||
@Autowired
|
||||
ITqDeviceInfoService service;
|
||||
|
||||
/**
|
||||
* 5分钟一次
|
||||
* @param jobExecutionContext
|
||||
* @throws JobExecutionException
|
||||
*/
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
service.getAllMeter(true);
|
||||
|
|
|
@ -20,6 +20,11 @@ public class ElectricityReadJob implements Job {
|
|||
@Autowired
|
||||
IElectricityMeterService service;
|
||||
|
||||
/**
|
||||
* 1小时一次
|
||||
* @param jobExecutionContext
|
||||
* @throws JobExecutionException
|
||||
*/
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
List<ElectricityMeter> electricityList = service.findAllList();
|
||||
|
|
|
@ -21,6 +21,11 @@ public class WaterReadJob implements Job {
|
|||
@Autowired
|
||||
IWaterMeterService service;
|
||||
|
||||
/**
|
||||
* 1小时一次
|
||||
* @param jobExecutionContext
|
||||
* @throws JobExecutionException
|
||||
*/
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
List<WaterMeter> waterList = service.findAllList();
|
||||
|
|
Loading…
Reference in New Issue