|
|
|
|
@ -796,7 +796,7 @@ public class DeviceControlServiceImpl implements DeviceControlService {
|
|
|
|
|
|
|
|
|
|
nowDataService.upTempSet2(deviceCodeParam.getBuildingId(), serialPortModel.getDataValue(), deviceCodeParam.getDeviceAddr());//更新实时状态表
|
|
|
|
|
log.info("楼栋编号:" + deviceCodeParam.getBuildingId() + ",设定温度:" + serialPortModel.getDataValue() + ",热泵编号:" + deviceCodeParam.getDeviceAddr()); |
|
|
|
|
} else if (deviceCodeParam.getParam().equals("时段1") || deviceCodeParam.getParam().equals("时段2")) { |
|
|
|
|
} else if (deviceCodeParam.getParam().equals("时段1") || deviceCodeParam.getParam().equals("时段2") || deviceCodeParam.getParam().equals("时段3")) { |
|
|
|
|
if (deviceCodeParam.getBrand().equals("美的") || deviceCodeParam.getBrand().equals("瑞星")) { |
|
|
|
|
//发送指令
|
|
|
|
|
if (Constant.READ.equals(type)) { |
|
|
|
|
@ -808,6 +808,8 @@ public class DeviceControlServiceImpl implements DeviceControlService {
|
|
|
|
|
deviceCodeParam.setRegisterAddr("0656"); //寄存器地址
|
|
|
|
|
} else if ("时段2".equals(deviceCodeParam.getParam()) && "美的".equals(deviceCodeParam.getBrand())) { |
|
|
|
|
deviceCodeParam.setRegisterAddr("065A"); //寄存器地址
|
|
|
|
|
} else if ("时段3".equals(deviceCodeParam.getParam()) && "美的".equals(deviceCodeParam.getBrand())) { |
|
|
|
|
deviceCodeParam.setRegisterAddr("065E"); //寄存器地址
|
|
|
|
|
} else if ("时段1".equals(deviceCodeParam.getParam()) && "瑞星".equals(deviceCodeParam.getBrand())) { |
|
|
|
|
deviceCodeParam.setRegisterAddr("0028"); //寄存器地址
|
|
|
|
|
} else if ("时段2".equals(deviceCodeParam.getParam()) && "瑞星".equals(deviceCodeParam.getBrand())) { |
|
|
|
|
@ -838,6 +840,9 @@ public class DeviceControlServiceImpl implements DeviceControlService {
|
|
|
|
|
} else if ("时段2".equals(deviceCodeParam.getParam())) { |
|
|
|
|
pumpData.setStartTime2(statTime); |
|
|
|
|
pumpData.setCloseTime2(closeTime); |
|
|
|
|
} else if ("时段3".equals(deviceCodeParam.getParam())) { |
|
|
|
|
pumpData.setStartTime3(statTime); |
|
|
|
|
pumpData.setCloseTime3(closeTime); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
pumpSetService.savePumpSet(pumpData);//热泵信息保存数据库
|
|
|
|
|
|