|
@@ -203,297 +203,502 @@ public class ElectricFieldService extends BaseService {
|
|
return electricField;
|
|
return electricField;
|
|
}
|
|
}
|
|
|
|
|
|
- public List<String> queryAllParamsFromDb(ElectricField electricField) throws Exception{
|
|
|
|
- String header = electricField.getStationCode();
|
|
|
|
- List<String> valList = new ArrayList<>();
|
|
|
|
|
|
+ public String getElectricField(ElectricField electricField){
|
|
//场站信息
|
|
//场站信息
|
|
List<ElectricField> electricFields = new ArrayList<>();
|
|
List<ElectricField> electricFields = new ArrayList<>();
|
|
electricFields.add(electricField);
|
|
electricFields.add(electricField);
|
|
String val = "ElectricField:::" + JsonBeanUtil.beanToJson(electricFields);
|
|
String val = "ElectricField:::" + JsonBeanUtil.beanToJson(electricFields);
|
|
- valList.add(val);
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ public String getPvModuleModel(String header){
|
|
//光伏组件信息
|
|
//光伏组件信息
|
|
List<PvModuleModel> pvModuleModelList = pvModuleModelService.getAll();
|
|
List<PvModuleModel> pvModuleModelList = pvModuleModelService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != pvModuleModelList && pvModuleModelList.size() > 0) {
|
|
if (null != pvModuleModelList && pvModuleModelList.size() > 0) {
|
|
for (PvModuleModel bean : pvModuleModelList) {
|
|
for (PvModuleModel bean : pvModuleModelList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "PvModuleModel:::" + JsonBeanUtil.beanToJson(pvModuleModelList);
|
|
val = "PvModuleModel:::" + JsonBeanUtil.beanToJson(pvModuleModelList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getOverhaulPlan(String header){
|
|
//检修计划
|
|
//检修计划
|
|
List<OverhaulPlan> overhaulPlanList = overHaulPlanService.getAll();
|
|
List<OverhaulPlan> overhaulPlanList = overHaulPlanService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != overhaulPlanList && overhaulPlanList.size() > 0) {
|
|
if (null != overhaulPlanList && overhaulPlanList.size() > 0) {
|
|
for (OverhaulPlan bean : overhaulPlanList) {
|
|
for (OverhaulPlan bean : overhaulPlanList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "OverhaulPlan:::" + JsonBeanUtil.beanToJson(overhaulPlanList);
|
|
val = "OverhaulPlan:::" + JsonBeanUtil.beanToJson(overhaulPlanList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getInverterInfo(String header){
|
|
//逆变器信息
|
|
//逆变器信息
|
|
List<InverterInfo> inverterInfoList = inverterInfoService.getAll();
|
|
List<InverterInfo> inverterInfoList = inverterInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != inverterInfoList && inverterInfoList.size() > 0) {
|
|
if (null != inverterInfoList && inverterInfoList.size() > 0) {
|
|
for (InverterInfo bean : inverterInfoList) {
|
|
for (InverterInfo bean : inverterInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "InverterInfo:::" + JsonBeanUtil.beanToJson(inverterInfoList);
|
|
val = "InverterInfo:::" + JsonBeanUtil.beanToJson(inverterInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getWeatherStationInfo(String header){
|
|
//气象站数据
|
|
//气象站数据
|
|
List<WeatherStationInfo> weatherStationInfoList = weatherStationInfoService.getAll();
|
|
List<WeatherStationInfo> weatherStationInfoList = weatherStationInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != weatherStationInfoList && weatherStationInfoList.size() > 0) {
|
|
if (null != weatherStationInfoList && weatherStationInfoList.size() > 0) {
|
|
for (WeatherStationInfo bean : weatherStationInfoList) {
|
|
for (WeatherStationInfo bean : weatherStationInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "WeatherStationInfo:::" + JsonBeanUtil.beanToJson(weatherStationInfoList);
|
|
val = "WeatherStationInfo:::" + JsonBeanUtil.beanToJson(weatherStationInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getWindTowerInfo(String header){
|
|
//测风塔
|
|
//测风塔
|
|
List<WindTowerInfo> windTowerInfoList = windTowerInfoService.getAll();
|
|
List<WindTowerInfo> windTowerInfoList = windTowerInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != windTowerInfoList && windTowerInfoList.size() > 0) {
|
|
if (null != windTowerInfoList && windTowerInfoList.size() > 0) {
|
|
for (WindTowerInfo bean : windTowerInfoList) {
|
|
for (WindTowerInfo bean : windTowerInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "WindTowerInfo:::" + JsonBeanUtil.beanToJson(windTowerInfoList);
|
|
val = "WindTowerInfo:::" + JsonBeanUtil.beanToJson(windTowerInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getWindTurbineInfo(String header){
|
|
//风机
|
|
//风机
|
|
List<WindTurbineInfo> windTurbineInfoList = windTurbineInfoService.getAll();
|
|
List<WindTurbineInfo> windTurbineInfoList = windTurbineInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != windTurbineInfoList && windTurbineInfoList.size() > 0) {
|
|
if (null != windTurbineInfoList && windTurbineInfoList.size() > 0) {
|
|
for (WindTurbineInfo bean : windTurbineInfoList) {
|
|
for (WindTurbineInfo bean : windTurbineInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "WindTurbineInfo:::" + JsonBeanUtil.beanToJson(windTurbineInfoList);
|
|
val = "WindTurbineInfo:::" + JsonBeanUtil.beanToJson(windTurbineInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getInitJobClass(String header){
|
|
//初始化定时任务
|
|
//初始化定时任务
|
|
List<InitJobClass> initJobClassList = initJobClassService.findAll();
|
|
List<InitJobClass> initJobClassList = initJobClassService.findAll();
|
|
|
|
+ String val = "";
|
|
if (null != initJobClassList && initJobClassList.size() > 0) {
|
|
if (null != initJobClassList && initJobClassList.size() > 0) {
|
|
for (InitJobClass bean : initJobClassList) {
|
|
for (InitJobClass bean : initJobClassList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "InitJobClass:::" + JsonBeanUtil.beanToJson(initJobClassList);
|
|
val = "InitJobClass:::" + JsonBeanUtil.beanToJson(initJobClassList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getQuartz(String header) throws Exception{
|
|
//定时任务
|
|
//定时任务
|
|
List<Quartz> quartzList = quartzService.getAll();
|
|
List<Quartz> quartzList = quartzService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != quartzList && quartzList.size() > 0) {
|
|
if (null != quartzList && quartzList.size() > 0) {
|
|
for (Quartz bean : quartzList) {
|
|
for (Quartz bean : quartzList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "Quartz:::" + JsonBeanUtil.beanToJson(quartzList);
|
|
val = "Quartz:::" + JsonBeanUtil.beanToJson(quartzList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getSysParameter(String header){
|
|
//系统参数
|
|
//系统参数
|
|
List<SysParameter> sysParameterList = sysParameterService.getAll();
|
|
List<SysParameter> sysParameterList = sysParameterService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != sysParameterList && sysParameterList.size() > 0) {
|
|
if (null != sysParameterList && sysParameterList.size() > 0) {
|
|
for (SysParameter bean : sysParameterList) {
|
|
for (SysParameter bean : sysParameterList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "SysParameter:::" + JsonBeanUtil.beanToJson(sysParameterList);
|
|
val = "SysParameter:::" + JsonBeanUtil.beanToJson(sysParameterList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- //文件上报部分
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getUploadObject(String header){
|
|
|
|
+ //文件上报对象
|
|
List<UploadObject> uploadObjectList = uploadObjectService.get();
|
|
List<UploadObject> uploadObjectList = uploadObjectService.get();
|
|
|
|
+ String val = "";
|
|
if (null != uploadObjectList && uploadObjectList.size() > 0) {
|
|
if (null != uploadObjectList && uploadObjectList.size() > 0) {
|
|
for (UploadObject bean : uploadObjectList) {
|
|
for (UploadObject bean : uploadObjectList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "UploadObject:::" + JsonBeanUtil.beanToJson(uploadObjectList);
|
|
val = "UploadObject:::" + JsonBeanUtil.beanToJson(uploadObjectList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getUploadFileChannel(String header){
|
|
//上报通道
|
|
//上报通道
|
|
List<UploadFileChannel> uploadFileChannels = uploadFileChannelService.get();
|
|
List<UploadFileChannel> uploadFileChannels = uploadFileChannelService.get();
|
|
|
|
+ String val = "";
|
|
if (null != uploadFileChannels && uploadFileChannels.size() > 0) {
|
|
if (null != uploadFileChannels && uploadFileChannels.size() > 0) {
|
|
for (UploadFileChannel bean : uploadFileChannels) {
|
|
for (UploadFileChannel bean : uploadFileChannels) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "UploadFileChannel:::" + JsonBeanUtil.beanToJson(uploadFileChannels);
|
|
val = "UploadFileChannel:::" + JsonBeanUtil.beanToJson(uploadFileChannels);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getUploadFileCode(String header){
|
|
//上报文件编码
|
|
//上报文件编码
|
|
List<UploadFileCode> uploadFileCodes = uploadFileCodeService.get();
|
|
List<UploadFileCode> uploadFileCodes = uploadFileCodeService.get();
|
|
|
|
+ String val = "";
|
|
if (null != uploadFileCodes && uploadFileCodes.size() > 0) {
|
|
if (null != uploadFileCodes && uploadFileCodes.size() > 0) {
|
|
for (UploadFileCode bean : uploadFileCodes) {
|
|
for (UploadFileCode bean : uploadFileCodes) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "UploadFileCode:::" + JsonBeanUtil.beanToJson(uploadFileCodes);
|
|
val = "UploadFileCode:::" + JsonBeanUtil.beanToJson(uploadFileCodes);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getUploadURL(String header){
|
|
//上报文件路径
|
|
//上报文件路径
|
|
List<UploadURL> uploadURLS = uploadURLService.findAll();
|
|
List<UploadURL> uploadURLS = uploadURLService.findAll();
|
|
|
|
+ String val = "";
|
|
if (null != uploadURLS && uploadURLS.size() > 0) {
|
|
if (null != uploadURLS && uploadURLS.size() > 0) {
|
|
for (UploadURL bean : uploadURLS) {
|
|
for (UploadURL bean : uploadURLS) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "UploadURL:::" + JsonBeanUtil.beanToJson(uploadURLS);
|
|
val = "UploadURL:::" + JsonBeanUtil.beanToJson(uploadURLS);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getEquipmentAttribute(String header){
|
|
//数据接入部分
|
|
//数据接入部分
|
|
List<EquipmentAttribute> equipmentAttributes = equipmentAttributeService.getAll();
|
|
List<EquipmentAttribute> equipmentAttributes = equipmentAttributeService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != equipmentAttributes && equipmentAttributes.size() > 0) {
|
|
if (null != equipmentAttributes && equipmentAttributes.size() > 0) {
|
|
for (EquipmentAttribute bean : equipmentAttributes) {
|
|
for (EquipmentAttribute bean : equipmentAttributes) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "EquipmentAttribute:::" + JsonBeanUtil.beanToJson(equipmentAttributes);
|
|
val = "EquipmentAttribute:::" + JsonBeanUtil.beanToJson(equipmentAttributes);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getFileParseTunnelInfo(String header){
|
|
//文件解析通道信息
|
|
//文件解析通道信息
|
|
List<FileParseTunnelInfo> fileParseTunnelInfos = tunnelInfoService.getAllFileParseTunnel();
|
|
List<FileParseTunnelInfo> fileParseTunnelInfos = tunnelInfoService.getAllFileParseTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != fileParseTunnelInfos && fileParseTunnelInfos.size() > 0) {
|
|
if (null != fileParseTunnelInfos && fileParseTunnelInfos.size() > 0) {
|
|
for (FileParseTunnelInfo bean : fileParseTunnelInfos) {
|
|
for (FileParseTunnelInfo bean : fileParseTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "FileParseTunnelInfo:::" + JsonBeanUtil.beanToJson(fileParseTunnelInfos);
|
|
val = "FileParseTunnelInfo:::" + JsonBeanUtil.beanToJson(fileParseTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getGather104TcpTunnelInfo(String header){
|
|
//104tcp 接入通道
|
|
//104tcp 接入通道
|
|
List<Gather104TcpTunnelInfo> gather104TcpTunnelInfos = tunnelInfoService.getAllGather104TcpTunnel();
|
|
List<Gather104TcpTunnelInfo> gather104TcpTunnelInfos = tunnelInfoService.getAllGather104TcpTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != gather104TcpTunnelInfos && gather104TcpTunnelInfos.size() > 0) {
|
|
if (null != gather104TcpTunnelInfos && gather104TcpTunnelInfos.size() > 0) {
|
|
for (Gather104TcpTunnelInfo bean : gather104TcpTunnelInfos) {
|
|
for (Gather104TcpTunnelInfo bean : gather104TcpTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "Gather104TcpTunnelInfo:::" + JsonBeanUtil.beanToJson(gather104TcpTunnelInfos);
|
|
val = "Gather104TcpTunnelInfo:::" + JsonBeanUtil.beanToJson(gather104TcpTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getGatherCdtRtuTunnelInfo(String header){
|
|
//cdtRtu接入通道
|
|
//cdtRtu接入通道
|
|
List<GatherCdtRtuTunnelInfo> gatherCdtRtuTunnelInfos = tunnelInfoService.getAllGatherCdtRtuTunnel();
|
|
List<GatherCdtRtuTunnelInfo> gatherCdtRtuTunnelInfos = tunnelInfoService.getAllGatherCdtRtuTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != gatherCdtRtuTunnelInfos && gatherCdtRtuTunnelInfos.size() > 0) {
|
|
if (null != gatherCdtRtuTunnelInfos && gatherCdtRtuTunnelInfos.size() > 0) {
|
|
for (GatherCdtRtuTunnelInfo bean : gatherCdtRtuTunnelInfos) {
|
|
for (GatherCdtRtuTunnelInfo bean : gatherCdtRtuTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "GatherCdtRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherCdtRtuTunnelInfos);
|
|
val = "GatherCdtRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherCdtRtuTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getGatherModbusRtuTunnelInfo(String header){
|
|
//modbusRtu接入通道
|
|
//modbusRtu接入通道
|
|
List<GatherModbusRtuTunnelInfo> gatherModbusRtuTunnelInfos =
|
|
List<GatherModbusRtuTunnelInfo> gatherModbusRtuTunnelInfos =
|
|
tunnelInfoService.getAllGatherModbusRtuTunnel();
|
|
tunnelInfoService.getAllGatherModbusRtuTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != gatherModbusRtuTunnelInfos && gatherModbusRtuTunnelInfos.size() > 0) {
|
|
if (null != gatherModbusRtuTunnelInfos && gatherModbusRtuTunnelInfos.size() > 0) {
|
|
for (GatherModbusRtuTunnelInfo bean : gatherModbusRtuTunnelInfos) {
|
|
for (GatherModbusRtuTunnelInfo bean : gatherModbusRtuTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "GatherModbusRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherModbusRtuTunnelInfos);
|
|
val = "GatherModbusRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherModbusRtuTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ public String getGatherModbusTcpTunnelInfo(String header){
|
|
//modbusTcp接入通道
|
|
//modbusTcp接入通道
|
|
List<GatherModbusTcpTunnelInfo> gatherModbusTcpTunnelInfos =
|
|
List<GatherModbusTcpTunnelInfo> gatherModbusTcpTunnelInfos =
|
|
tunnelInfoService.getAllGatherModbusTcpTunnel();
|
|
tunnelInfoService.getAllGatherModbusTcpTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != gatherModbusTcpTunnelInfos && gatherModbusTcpTunnelInfos.size() > 0) {
|
|
if (null != gatherModbusTcpTunnelInfos && gatherModbusTcpTunnelInfos.size() > 0) {
|
|
for (GatherModbusTcpTunnelInfo bean : gatherModbusTcpTunnelInfos) {
|
|
for (GatherModbusTcpTunnelInfo bean : gatherModbusTcpTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "GatherModbusTcpTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherModbusTcpTunnelInfos);
|
|
val = "GatherModbusTcpTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherModbusTcpTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getGatherModbusRtuWithTcpServerTunnelInfo(String header){
|
|
//ModbusRtuWithTcp 接入通道
|
|
//ModbusRtuWithTcp 接入通道
|
|
List<GatherModbusRtuWithTcpServerTunnelInfo> gatherModbusRtuWithTcpServerTunnelInfos =
|
|
List<GatherModbusRtuWithTcpServerTunnelInfo> gatherModbusRtuWithTcpServerTunnelInfos =
|
|
tunnelInfoService.getAllGatherModbusRtuWithTcpServerTunnel();
|
|
tunnelInfoService.getAllGatherModbusRtuWithTcpServerTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != gatherModbusRtuWithTcpServerTunnelInfos && gatherModbusRtuWithTcpServerTunnelInfos.size() > 0) {
|
|
if (null != gatherModbusRtuWithTcpServerTunnelInfos && gatherModbusRtuWithTcpServerTunnelInfos.size() > 0) {
|
|
for (GatherModbusRtuWithTcpServerTunnelInfo bean : gatherModbusRtuWithTcpServerTunnelInfos) {
|
|
for (GatherModbusRtuWithTcpServerTunnelInfo bean : gatherModbusRtuWithTcpServerTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "GatherModbusRtuWithTcpServerTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherModbusRtuWithTcpServerTunnelInfos);
|
|
val = "GatherModbusRtuWithTcpServerTunnelInfo:::" + JsonBeanUtil.beanToJson(gatherModbusRtuWithTcpServerTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getSender104TcpTunnelInfo(String header){
|
|
//104tcp转发通道
|
|
//104tcp转发通道
|
|
List<Sender104TcpTunnelInfo> sender104TcpTunnelInfos = tunnelInfoService.getAllSender104TcpTunnel();
|
|
List<Sender104TcpTunnelInfo> sender104TcpTunnelInfos = tunnelInfoService.getAllSender104TcpTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != sender104TcpTunnelInfos && sender104TcpTunnelInfos.size() > 0) {
|
|
if (null != sender104TcpTunnelInfos && sender104TcpTunnelInfos.size() > 0) {
|
|
for (Sender104TcpTunnelInfo bean : sender104TcpTunnelInfos) {
|
|
for (Sender104TcpTunnelInfo bean : sender104TcpTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "Sender104TcpTunnelInfo:::" + JsonBeanUtil.beanToJson(sender104TcpTunnelInfos);
|
|
val = "Sender104TcpTunnelInfo:::" + JsonBeanUtil.beanToJson(sender104TcpTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getSenderCdtRtuTunnelInfo(String header){
|
|
//CdtRtu转发通道
|
|
//CdtRtu转发通道
|
|
List<SenderCdtRtuTunnelInfo> senderCdtRtuTunnelInfos = tunnelInfoService.getAllSenderCdtRtuTunnel();
|
|
List<SenderCdtRtuTunnelInfo> senderCdtRtuTunnelInfos = tunnelInfoService.getAllSenderCdtRtuTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != senderCdtRtuTunnelInfos && senderCdtRtuTunnelInfos.size() > 0) {
|
|
if (null != senderCdtRtuTunnelInfos && senderCdtRtuTunnelInfos.size() > 0) {
|
|
for (SenderCdtRtuTunnelInfo bean : senderCdtRtuTunnelInfos) {
|
|
for (SenderCdtRtuTunnelInfo bean : senderCdtRtuTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "SenderCdtRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(senderCdtRtuTunnelInfos);
|
|
val = "SenderCdtRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(senderCdtRtuTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getSenderModbusRtuTunnelInfo(String header){
|
|
//ModbusRtu 转发通道
|
|
//ModbusRtu 转发通道
|
|
List<SenderModbusRtuTunnelInfo> senderModbusRtuTunnelInfos =
|
|
List<SenderModbusRtuTunnelInfo> senderModbusRtuTunnelInfos =
|
|
tunnelInfoService.getAllSenderModbusRtuTunnel();
|
|
tunnelInfoService.getAllSenderModbusRtuTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != senderModbusRtuTunnelInfos && senderModbusRtuTunnelInfos.size() > 0) {
|
|
if (null != senderModbusRtuTunnelInfos && senderModbusRtuTunnelInfos.size() > 0) {
|
|
for (SenderModbusRtuTunnelInfo bean : senderModbusRtuTunnelInfos) {
|
|
for (SenderModbusRtuTunnelInfo bean : senderModbusRtuTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "SenderModbusRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(senderModbusRtuTunnelInfos);
|
|
val = "SenderModbusRtuTunnelInfo:::" + JsonBeanUtil.beanToJson(senderModbusRtuTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getSenderModbusTcpTunnelInfo(String header){
|
|
//ModbusTcp 转发通道
|
|
//ModbusTcp 转发通道
|
|
List<SenderModbusTcpTunnelInfo> senderModbusTcpTunnelInfos =
|
|
List<SenderModbusTcpTunnelInfo> senderModbusTcpTunnelInfos =
|
|
tunnelInfoService.getAllSenderModbusTcpTunnel();
|
|
tunnelInfoService.getAllSenderModbusTcpTunnel();
|
|
|
|
+ String val = "";
|
|
if (null != senderModbusTcpTunnelInfos && senderModbusTcpTunnelInfos.size() > 0) {
|
|
if (null != senderModbusTcpTunnelInfos && senderModbusTcpTunnelInfos.size() > 0) {
|
|
for (SenderModbusTcpTunnelInfo bean : senderModbusTcpTunnelInfos) {
|
|
for (SenderModbusTcpTunnelInfo bean : senderModbusTcpTunnelInfos) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "SenderModbusTcpTunnelInfo:::" + JsonBeanUtil.beanToJson(senderModbusTcpTunnelInfos);
|
|
val = "SenderModbusTcpTunnelInfo:::" + JsonBeanUtil.beanToJson(senderModbusTcpTunnelInfos);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getProtocolSenderDataPoint(String header){
|
|
//转发点表
|
|
//转发点表
|
|
List<ProtocolSenderDataPoint> protocolSenderDataPoints = protocolSenderDataPointService.getAll();
|
|
List<ProtocolSenderDataPoint> protocolSenderDataPoints = protocolSenderDataPointService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != protocolSenderDataPoints && protocolSenderDataPoints.size() > 0) {
|
|
if (null != protocolSenderDataPoints && protocolSenderDataPoints.size() > 0) {
|
|
for (ProtocolSenderDataPoint bean : protocolSenderDataPoints) {
|
|
for (ProtocolSenderDataPoint bean : protocolSenderDataPoints) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "ProtocolSenderDataPoint:::" + JsonBeanUtil.beanToJson(protocolSenderDataPoints);
|
|
val = "ProtocolSenderDataPoint:::" + JsonBeanUtil.beanToJson(protocolSenderDataPoints);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getProtocolGatherDataPoint(String header){
|
|
//接入点表
|
|
//接入点表
|
|
List<ProtocolGatherDataPoint> protocolGatherDataPoints = protocolGatherDataPointService.getAll();
|
|
List<ProtocolGatherDataPoint> protocolGatherDataPoints = protocolGatherDataPointService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != protocolGatherDataPoints && protocolGatherDataPoints.size() > 0) {
|
|
if (null != protocolGatherDataPoints && protocolGatherDataPoints.size() > 0) {
|
|
for (ProtocolGatherDataPoint bean : protocolGatherDataPoints) {
|
|
for (ProtocolGatherDataPoint bean : protocolGatherDataPoints) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "ProtocolGatherDataPoint:::" + JsonBeanUtil.beanToJson(protocolGatherDataPoints);
|
|
val = "ProtocolGatherDataPoint:::" + JsonBeanUtil.beanToJson(protocolGatherDataPoints);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- // -------------------------20220615 新增agc/avc 升压站 南方电网设备-----------------------------------
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getAGC_AVCInfo(String header){
|
|
//gac/avc
|
|
//gac/avc
|
|
List<AGC_AVCInfo> agcAvcInfoList = agcAvcInfoService.getAll();
|
|
List<AGC_AVCInfo> agcAvcInfoList = agcAvcInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != agcAvcInfoList && agcAvcInfoList.size() > 0) {
|
|
if (null != agcAvcInfoList && agcAvcInfoList.size() > 0) {
|
|
for (AGC_AVCInfo bean : agcAvcInfoList) {
|
|
for (AGC_AVCInfo bean : agcAvcInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "AgcAvcInfo:::" + JsonBeanUtil.beanToJson(agcAvcInfoList);
|
|
val = "AgcAvcInfo:::" + JsonBeanUtil.beanToJson(agcAvcInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getBoosterStationInfo(String header){
|
|
//升压站
|
|
//升压站
|
|
List<BoosterStationInfo> boosterStationInfoList = boosterStationInfoService.getAll();
|
|
List<BoosterStationInfo> boosterStationInfoList = boosterStationInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != boosterStationInfoList && boosterStationInfoList.size() > 0) {
|
|
if (null != boosterStationInfoList && boosterStationInfoList.size() > 0) {
|
|
for (BoosterStationInfo bean : boosterStationInfoList) {
|
|
for (BoosterStationInfo bean : boosterStationInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "BoosterStationInfo:::" + JsonBeanUtil.beanToJson(boosterStationInfoList);
|
|
val = "BoosterStationInfo:::" + JsonBeanUtil.beanToJson(boosterStationInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
+ public String getSubsidiaryEquipmentInfo(String header){
|
|
//南方电网设备
|
|
//南方电网设备
|
|
List<SubsidiaryEquipmentInfo> subsidiaryEquipmentInfoList = subsidiaryEquipmentInfoService.getAll();
|
|
List<SubsidiaryEquipmentInfo> subsidiaryEquipmentInfoList = subsidiaryEquipmentInfoService.getAll();
|
|
|
|
+ String val = "";
|
|
if (null != subsidiaryEquipmentInfoList && subsidiaryEquipmentInfoList.size() > 0) {
|
|
if (null != subsidiaryEquipmentInfoList && subsidiaryEquipmentInfoList.size() > 0) {
|
|
for (SubsidiaryEquipmentInfo bean : subsidiaryEquipmentInfoList) {
|
|
for (SubsidiaryEquipmentInfo bean : subsidiaryEquipmentInfoList) {
|
|
bean.setStationCode(header);
|
|
bean.setStationCode(header);
|
|
}
|
|
}
|
|
val = "SubsidiaryEquipmentInfo:::" + JsonBeanUtil.beanToJson(subsidiaryEquipmentInfoList);
|
|
val = "SubsidiaryEquipmentInfo:::" + JsonBeanUtil.beanToJson(subsidiaryEquipmentInfoList);
|
|
- valList.add(val);
|
|
|
|
}
|
|
}
|
|
|
|
+ return val;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public List<String> queryAllParamsFromDb(ElectricField electricField) throws Exception{
|
|
|
|
+ String header = electricField.getStationCode();
|
|
|
|
+
|
|
|
|
+ List<String> valList = new ArrayList<>();
|
|
|
|
+ String electricFieldVal = getElectricField(electricField);
|
|
|
|
+ if (!"".equals(electricFieldVal)){
|
|
|
|
+ valList.add(electricFieldVal);
|
|
|
|
+ }
|
|
|
|
+ String pvModuleModelVal = getPvModuleModel(header);
|
|
|
|
+ if (!"".equals(pvModuleModelVal)){
|
|
|
|
+ valList.add(pvModuleModelVal);
|
|
|
|
+ }
|
|
|
|
+ String overhaulPlanVal = getOverhaulPlan(header);
|
|
|
|
+ if (!"".equals(overhaulPlanVal)){
|
|
|
|
+ valList.add(overhaulPlanVal);
|
|
|
|
+ }
|
|
|
|
+ String inverterInfoVal = getInverterInfo(header);
|
|
|
|
+ if (!"".equals(inverterInfoVal)){
|
|
|
|
+ valList.add(inverterInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String weatherStationInfoVal = getWeatherStationInfo(header);
|
|
|
|
+ if (!"".equals(weatherStationInfoVal)){
|
|
|
|
+ valList.add(weatherStationInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String windTowerInfoVal = getWindTowerInfo(header);
|
|
|
|
+ if (!"".equals(windTowerInfoVal)){
|
|
|
|
+ valList.add(windTowerInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String windTurbineInfoVal = getWindTurbineInfo(header);
|
|
|
|
+ if (!"".equals(windTurbineInfoVal)){
|
|
|
|
+ valList.add(windTurbineInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String initJobClassVal = getInitJobClass(header);
|
|
|
|
+ if (!"".equals(initJobClassVal)){
|
|
|
|
+ valList.add(initJobClassVal);
|
|
|
|
+ }
|
|
|
|
+ String quartzVal = getQuartz(header);
|
|
|
|
+ if (!"".equals(quartzVal)){
|
|
|
|
+ valList.add(quartzVal);
|
|
|
|
+ }
|
|
|
|
+ String sysParameterVal = getSysParameter(header);
|
|
|
|
+ if (!"".equals(sysParameterVal)){
|
|
|
|
+ valList.add(sysParameterVal);
|
|
|
|
+ }
|
|
|
|
+ String uploadObjectVal = getUploadObject(header);
|
|
|
|
+ if (!"".equals(uploadObjectVal)){
|
|
|
|
+ valList.add(uploadObjectVal);
|
|
|
|
+ }
|
|
|
|
+ String uploadFileChannelVal = getUploadFileChannel(header);
|
|
|
|
+ if (!"".equals(uploadFileChannelVal)){
|
|
|
|
+ valList.add(uploadFileChannelVal);
|
|
|
|
+ }
|
|
|
|
+ String uploadFileCodeVal = getUploadFileCode(header);
|
|
|
|
+ if (!"".equals(uploadFileCodeVal)){
|
|
|
|
+ valList.add(uploadFileCodeVal);
|
|
|
|
+ }
|
|
|
|
+ String uploadURLVal = getUploadURL(header);
|
|
|
|
+ if (!"".equals(uploadURLVal)){
|
|
|
|
+ valList.add(uploadURLVal);
|
|
|
|
+ }
|
|
|
|
+ String equipmentAttributeVal = getEquipmentAttribute(header);
|
|
|
|
+ if (!"".equals(equipmentAttributeVal)){
|
|
|
|
+ valList.add(equipmentAttributeVal);
|
|
|
|
+ }
|
|
|
|
+ String fileParseTunnelInfoVal = getFileParseTunnelInfo(header);
|
|
|
|
+ if (!"".equals(fileParseTunnelInfoVal)){
|
|
|
|
+ valList.add(fileParseTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String gather104TcpTunnelInfoVal = getGather104TcpTunnelInfo(header);
|
|
|
|
+ if (!"".equals(gather104TcpTunnelInfoVal)){
|
|
|
|
+ valList.add(gather104TcpTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String gatherCdtRtuTunnelInfoVal = getGatherCdtRtuTunnelInfo(header);
|
|
|
|
+ if (!"".equals(gatherCdtRtuTunnelInfoVal)){
|
|
|
|
+ valList.add(gatherCdtRtuTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String gatherModbusRtuTunnelInfoVal = getGatherModbusRtuTunnelInfo(header);
|
|
|
|
+ if (!"".equals(gatherModbusRtuTunnelInfoVal)){
|
|
|
|
+ valList.add(gatherModbusRtuTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String gatherModbusTcpTunnelInfoVal = getGatherModbusTcpTunnelInfo(header);
|
|
|
|
+ if (!"".equals(gatherModbusTcpTunnelInfoVal)){
|
|
|
|
+ valList.add(gatherModbusTcpTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String gatherModbusRtuWithTcpServerTunnelInfoVal = getGatherModbusRtuWithTcpServerTunnelInfo(header);
|
|
|
|
+ if (!"".equals(gatherModbusRtuWithTcpServerTunnelInfoVal)){
|
|
|
|
+ valList.add(gatherModbusRtuWithTcpServerTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String sender104TscpTunnelInfoVal = getSender104TcpTunnelInfo(header);
|
|
|
|
+ if (!"".equals(sender104TscpTunnelInfoVal)){
|
|
|
|
+ valList.add(sender104TscpTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String senderCdtRtuTunnelInfoVal = getSenderCdtRtuTunnelInfo(header);
|
|
|
|
+ if (!"".equals(senderCdtRtuTunnelInfoVal)){
|
|
|
|
+ valList.add(senderCdtRtuTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String senderModbusRtuTunnelInfoVal = getSenderModbusRtuTunnelInfo(header);
|
|
|
|
+ if (!"".equals(senderModbusRtuTunnelInfoVal)){
|
|
|
|
+ valList.add(senderModbusRtuTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String senderModbusTcpTunnelInfoVal = getSenderModbusTcpTunnelInfo(header);
|
|
|
|
+ if (!"".equals(senderModbusTcpTunnelInfoVal)){
|
|
|
|
+ valList.add(senderModbusTcpTunnelInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String protocolSenderDataPointVal = getProtocolSenderDataPoint(header);
|
|
|
|
+ if (!"".equals(protocolSenderDataPointVal)){
|
|
|
|
+ valList.add(protocolSenderDataPointVal);
|
|
|
|
+ }
|
|
|
|
+ String protocolGatherDataPointVal = getProtocolGatherDataPoint(header);
|
|
|
|
+ if (!"".equals(protocolGatherDataPointVal)){
|
|
|
|
+ valList.add(protocolGatherDataPointVal);
|
|
|
|
+ }
|
|
|
|
+ // -------------------------20220615 新增agc/avc 升压站 南方电网设备-----------------------------------
|
|
|
|
+ String agc_avcInfoVal = getAGC_AVCInfo(header);
|
|
|
|
+ if (!"".equals(agc_avcInfoVal)){
|
|
|
|
+ valList.add(agc_avcInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String boosterStationInfoVal = getBoosterStationInfo(header);
|
|
|
|
+ if (!"".equals(boosterStationInfoVal)){
|
|
|
|
+ valList.add(boosterStationInfoVal);
|
|
|
|
+ }
|
|
|
|
+ String subsidiaryEquipmentInfoVal = getSubsidiaryEquipmentInfo(header);
|
|
|
|
+ if (!"".equals(subsidiaryEquipmentInfoVal)){
|
|
|
|
+ valList.add(subsidiaryEquipmentInfoVal);
|
|
|
|
+ }
|
|
return valList;
|
|
return valList;
|
|
}
|
|
}
|
|
}
|
|
}
|