Commit 616ca692 authored by hezhuozhi's avatar hezhuozhi

jxdz修改累计发电量

parent 5be11bdf
...@@ -28,13 +28,13 @@ public class JXDZExecute { ...@@ -28,13 +28,13 @@ public class JXDZExecute {
JXDZUtils jxdzUtils; JXDZUtils jxdzUtils;
@Autowired @Autowired
JXDZFactory jxdzFactory; JXDZFactory jxdzFactory;
@Value("${scheduledEnable:false}") @Value("${jxdzScheduledEnable:false}")
private Boolean scheduledEnable; private Boolean jxdzScheduledEnable;
@Scheduled(cron = "0 0 */1 * * ?") @Scheduled(cron = "0 0 */1 * * ?")
public void hourInterface() { public void hourInterface() {
if (!scheduledEnable) { if (!jxdzScheduledEnable) {
return; return;
} }
log.info("开始执行小时任务"); log.info("开始执行小时任务");
...@@ -57,16 +57,16 @@ public class JXDZExecute { ...@@ -57,16 +57,16 @@ public class JXDZExecute {
fdzsbjcService.backupData(windDeviceDataVOList, needDataVO.getDateTime()); fdzsbjcService.backupData(windDeviceDataVOList, needDataVO.getDateTime());
gfdzsbjcService.backupData(pvDeviceDataVOList, needDataVO.getDateTime()); gfdzsbjcService.backupData(pvDeviceDataVOList, needDataVO.getDateTime());
//发送请求 //发送请求
fdzjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, windStationDataVOList); // fdzjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, windStationDataVOList);
gfdzjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, pvStationDataVOList); // gfdzjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, pvStationDataVOList);
fdzsbjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, windDeviceDataVOList); // fdzsbjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, windDeviceDataVOList);
gfdzsbjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, pvDeviceDataVOList); // gfdzsbjcService.sendData(JXDZAccessTypeEnum.CAIJI.getCode(), needDataVO, pvDeviceDataVOList);
log.info("小时任务执行成功"); log.info("小时任务执行成功");
} }
@Scheduled(cron = "0 0 1 * * ?") @Scheduled(cron = "0 0 1 * * ?")
public void dayInterface() { public void dayInterface() {
if (!scheduledEnable) { if (!jxdzScheduledEnable) {
return; return;
} }
log.info("开始执行天任务"); log.info("开始执行天任务");
......
...@@ -168,7 +168,7 @@ jxdzIp=122.70.153.215:9003 ...@@ -168,7 +168,7 @@ jxdzIp=122.70.153.215:9003
jxdzTokenUserName=jiangxi_epc jxdzTokenUserName=jiangxi_epc
jxdzTokenPassword=123456 jxdzTokenPassword=123456
publicKey=04508e9c4df8463c784df2dde2536e792851a8f3fd0e5ff29b7bf1a5d9e3f566aa49a7a5fe7683e3dc4dc30dd7bc8773838a9e4fbcf7dfac53461c8777a6aed691 publicKey=04508e9c4df8463c784df2dde2536e792851a8f3fd0e5ff29b7bf1a5d9e3f566aa49a7a5fe7683e3dc4dc30dd7bc8773838a9e4fbcf7dfac53461c8777a6aed691
scheduledEnable=false jxdzScheduledEnable=false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment