|
@@ -186,7 +186,7 @@ public class EnergyDataServiceImpl implements EnergyDataService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Map<String, Object> meter = new HashMap<>();
|
|
Map<String, Object> meter = new HashMap<>();
|
|
|
- meter.put("id", buildingId + device.getDeviceId().substring(device.getDeviceId().length() - 3));
|
|
|
|
|
|
|
+ meter.put("id", buildingId + "M" + device.getDeviceId().substring(device.getDeviceId().length() - 3));
|
|
|
meter.put("name", device.getDeviceName());
|
|
meter.put("name", device.getDeviceName());
|
|
|
|
|
|
|
|
List<Map<String, String>> functions = new ArrayList<>();
|
|
List<Map<String, String>> functions = new ArrayList<>();
|
|
@@ -196,30 +196,30 @@ public class EnergyDataServiceImpl implements EnergyDataService {
|
|
|
functions.add(createFunction("WPP", String.valueOf(data.getTotalActiveEnergyF()), null));
|
|
functions.add(createFunction("WPP", String.valueOf(data.getTotalActiveEnergyF()), null));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 正向有功功率
|
|
|
|
|
- if (data.getTotalActivePower() != null) {
|
|
|
|
|
- functions.add(createFunction("Ps", String.valueOf(data.getTotalActivePower()), null));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // 正向无功功率
|
|
|
|
|
- if (data.getTotalReactiveEnergyF() != null) {
|
|
|
|
|
- functions.add(createFunction("Qs", String.valueOf(data.getTotalReactiveEnergyF()), null));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // A相电压
|
|
|
|
|
- if (data.getVoltageA() != null) {
|
|
|
|
|
- functions.add(createFunction("Ua", String.valueOf(data.getVoltageA()), null));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // B相电压
|
|
|
|
|
- if (data.getVoltageB() != null) {
|
|
|
|
|
- functions.add(createFunction("Ub", String.valueOf(data.getVoltageB()), null));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // C相电压
|
|
|
|
|
- if (data.getVoltageC() != null) {
|
|
|
|
|
- functions.add(createFunction("Uc", String.valueOf(data.getVoltageC()), null));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// // 正向有功功率
|
|
|
|
|
+// if (data.getTotalActivePower() != null) {
|
|
|
|
|
+// functions.add(createFunction("Ps", String.valueOf(data.getTotalActivePower()), null));
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// // 正向无功功率
|
|
|
|
|
+// if (data.getTotalReactiveEnergyF() != null) {
|
|
|
|
|
+// functions.add(createFunction("Qs", String.valueOf(data.getTotalReactiveEnergyF()), null));
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// // A相电压
|
|
|
|
|
+// if (data.getVoltageA() != null) {
|
|
|
|
|
+// functions.add(createFunction("Ua", String.valueOf(data.getVoltageA()), null));
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// // B相电压
|
|
|
|
|
+// if (data.getVoltageB() != null) {
|
|
|
|
|
+// functions.add(createFunction("Ub", String.valueOf(data.getVoltageB()), null));
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// // C相电压
|
|
|
|
|
+// if (data.getVoltageC() != null) {
|
|
|
|
|
+// functions.add(createFunction("Uc", String.valueOf(data.getVoltageC()), null));
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
// A相电流
|
|
// A相电流
|
|
|
if (data.getCurrentA() != null) {
|
|
if (data.getCurrentA() != null) {
|
|
@@ -236,10 +236,10 @@ public class EnergyDataServiceImpl implements EnergyDataService {
|
|
|
functions.add(createFunction("Ic", String.valueOf(data.getCurrentC()), null));
|
|
functions.add(createFunction("Ic", String.valueOf(data.getCurrentC()), null));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 功率因数
|
|
|
|
|
- if (data.getTotalPowerFactor() != null) {
|
|
|
|
|
- functions.add(createFunction("PFs", String.valueOf(data.getTotalPowerFactor()), null));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// // 功率因数
|
|
|
|
|
+// if (data.getTotalPowerFactor() != null) {
|
|
|
|
|
+// functions.add(createFunction("PFs", String.valueOf(data.getTotalPowerFactor()), null));
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
meter.put("functions", functions);
|
|
meter.put("functions", functions);
|
|
|
meters.add(meter);
|
|
meters.add(meter);
|