Commit 1406f253 authored by caotao's avatar caotao

1.户用光伏采集器新增信号强度字段。

2.户用光伏锦浪云、科士达采集信号强度字段。
parent 4f94d207
...@@ -131,4 +131,9 @@ public class JpCollector implements Serializable { ...@@ -131,4 +131,9 @@ public class JpCollector implements Serializable {
*/ */
@TableField("name") @TableField("name")
private String name; private String name;
/**
* 信号强度
*/
@TableField("signal_strength")
private String signalStrength;
} }
...@@ -367,6 +367,8 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe ...@@ -367,6 +367,8 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
jpCollector.setStationName(collectorDetailDto.getStationName()); jpCollector.setStationName(collectorDetailDto.getStationName());
jpCollector.setAddr(collectorDetailDto.getAddr()); jpCollector.setAddr(collectorDetailDto.getAddr());
jpCollector.setName(collectorDetailDto.getName()); jpCollector.setName(collectorDetailDto.getName());
//信号强度
jpCollector.setSignalStrength(collectorDetailDto.getRssiLevel());
if (ObjectUtils.isEmpty(jpCollector.getSequenceNbr())) { if (ObjectUtils.isEmpty(jpCollector.getSequenceNbr())) {
jpCollectorMapper.insert(jpCollector); jpCollectorMapper.insert(jpCollector);
} else { } else {
......
...@@ -472,6 +472,8 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe ...@@ -472,6 +472,8 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
jpCollector.setName(ksolarStationCollectList.getCollectName()); jpCollector.setName(ksolarStationCollectList.getCollectName());
jpCollector.setVersion(ksolarStationCollectList.getCollectVersion()); jpCollector.setVersion(ksolarStationCollectList.getCollectVersion());
jpCollector.setType(ksolarStationCollectList.getDeviceModel()); jpCollector.setType(ksolarStationCollectList.getDeviceModel());
//信号强度
jpCollector.setSignalStrength(String.valueOf(ksolarStationCollectList.getSignal()));
if (ObjectUtils.isEmpty(jpCollector.getSequenceNbr())) { if (ObjectUtils.isEmpty(jpCollector.getSequenceNbr())) {
jpCollectorMapper.insert(jpCollector); jpCollectorMapper.insert(jpCollector);
} else { } else {
......
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