|
|
|
@ -59,28 +59,32 @@ public class TotalElectricMeterController { |
|
|
|
|
Map<String, Object> map2 = new HashMap<>(); |
|
|
|
|
map2.put("deviceId", dev.getDeviceId()); |
|
|
|
|
map2.put("deviceName", dev.getDeviceName()); |
|
|
|
|
map2.put("deviceId", dev.getDeviceId()); |
|
|
|
|
boolean b1 = false; |
|
|
|
|
boolean b2 = false; |
|
|
|
|
boolean b3 = false; |
|
|
|
|
ModelVo modelVo1 = psdcModelService.queryControlModel(dd.getDeviceModel(), "intemp"); |
|
|
|
|
if (null != modelVo1){ |
|
|
|
|
b1 = true; |
|
|
|
|
} |
|
|
|
|
ModelVo modelVo2 = psdcModelService.queryControlModel(dd.getDeviceModel(), "outtemp"); |
|
|
|
|
if (null != modelVo2){ |
|
|
|
|
b2 = true; |
|
|
|
|
} |
|
|
|
|
ModelVo modelVo3 = psdcModelService.queryControlModel(dd.getDeviceModel(), "temp"); |
|
|
|
|
if (null != modelVo3){ |
|
|
|
|
b3 = true; |
|
|
|
|
// map2.put("deviceId", dev.getDeviceId());
|
|
|
|
|
// boolean b1 = false;
|
|
|
|
|
// boolean b2 = false;
|
|
|
|
|
// boolean b3 = false;
|
|
|
|
|
// ModelVo modelVo1 = psdcModelService.queryControlModel(dd.getDeviceModel(), "intemp");
|
|
|
|
|
// if (null != modelVo1){
|
|
|
|
|
// b1 = true;
|
|
|
|
|
// }
|
|
|
|
|
// ModelVo modelVo2 = psdcModelService.queryControlModel(dd.getDeviceModel(), "outtemp");
|
|
|
|
|
// if (null != modelVo2){
|
|
|
|
|
// b2 = true;
|
|
|
|
|
// }
|
|
|
|
|
// ModelVo modelVo3 = psdcModelService.queryControlModel(dd.getDeviceModel(), "temp");
|
|
|
|
|
// if (null != modelVo3){
|
|
|
|
|
// b3 = true;
|
|
|
|
|
// }
|
|
|
|
|
// map2.put("intemp", null);
|
|
|
|
|
// map2.put("outtemp", null);
|
|
|
|
|
// map2.put("temp", null);
|
|
|
|
|
// map2.put("inTemp", b1);
|
|
|
|
|
// map2.put("outTemp", b2);
|
|
|
|
|
// map2.put("Temp", b3);
|
|
|
|
|
List<ModelVo> modelVoList = psdcModelService.selDevIsControlByModelName(dd.getDeviceModel()); |
|
|
|
|
for (ModelVo scr : modelVoList){ |
|
|
|
|
map2.put(scr.getRelationField(), null); |
|
|
|
|
} |
|
|
|
|
map2.put("intemp", null); |
|
|
|
|
map2.put("outtemp", null); |
|
|
|
|
map2.put("temp", null); |
|
|
|
|
map2.put("inTemp", b1); |
|
|
|
|
map2.put("outTemp", b2); |
|
|
|
|
map2.put("Temp", b3); |
|
|
|
|
maps2.add(map2); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|