@ -639,15 +639,15 @@ public class GetReadOrder485 {
List < DeviceInstallEntity > deviceList1 ;
List < DeviceInstallEntity > deviceList1 ;
deviceCodeParamService . selectInsertDeviceCodeParam ( ) ; //查询插入设备采集参数,包括压变、温控、温度变送器、热泵状态
deviceCodeParamService . selectInsertDeviceCodeParam ( ) ; //查询插入设备采集参数,包括压变、温控、温度变送器、热泵状态
deviceList1 = deviceInstallService . selectDeviceParams ( ) ; //查找多个采集参数的设备,包括热泵
deviceList1 = deviceInstallService . selectDeviceParams ( ) ; //查找多个采集参数的设备,包括热泵
System . out . println ( deviceList1 ) ;
// System.out.println(deviceList1);
for ( DeviceInstallEntity devices : deviceList1 ) {
for ( DeviceInstallEntity devices : deviceList1 ) {
List < DeviceCodeParamEntity > deviceCodeParamEntityList = new ArrayList < > ( ) ;
List < DeviceCodeParamEntity > deviceCodeParamEntityList = new ArrayList < > ( ) ;
if ( devices . getDeviceType ( ) . equals ( "热泵" ) ) {
if ( devices . getDeviceType ( ) . equals ( "热泵" ) ) {
if ( devices . getBrand ( ) . equals ( "美的" ) ) {
DeviceCodeParamEntity deviceCodeParamEntity3 = new DeviceCodeParamEntity ( ) ;
DeviceCodeParamEntity deviceCodeParamEntity3 = new DeviceCodeParamEntity ( ) ;
deviceCodeParamEntity3 . setRegisterAddr ( "0007" ) ; //水温
switch ( devices . getBrand ( ) ) {
case "美的" :
deviceCodeParamEntity3 . setRegisterAddr ( "0007" ) ; //实际水温
deviceCodeParamEntity3 . setFunCode ( "03" ) ;
deviceCodeParamEntity3 . setFunCode ( "03" ) ;
deviceCodeParamEntity3 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity3 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity3 . setDeviceName ( devices . getDeviceName ( ) ) ;
deviceCodeParamEntity3 . setDeviceName ( devices . getDeviceName ( ) ) ;
@ -658,11 +658,9 @@ public class GetReadOrder485 {
deviceCodeParamEntity3 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity3 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity3 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity3 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity3 ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity3 ) ;
break ;
} else if ( devices . getBrand ( ) . equals ( "美的2" ) ) {
case "美的2" :
deviceCodeParamEntity3 . setRegisterAddr ( "0064" ) ; //实际水温
DeviceCodeParamEntity deviceCodeParamEntity3 = new DeviceCodeParamEntity ( ) ;
deviceCodeParamEntity3 . setRegisterAddr ( "0064" ) ; //水温
deviceCodeParamEntity3 . setFunCode ( "03" ) ;
deviceCodeParamEntity3 . setFunCode ( "03" ) ;
deviceCodeParamEntity3 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity3 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity3 . setDeviceName ( devices . getDeviceName ( ) ) ;
deviceCodeParamEntity3 . setDeviceName ( devices . getDeviceName ( ) ) ;
@ -673,7 +671,52 @@ public class GetReadOrder485 {
deviceCodeParamEntity3 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity3 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity3 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity3 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity3 ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity3 ) ;
}
break ;
case "瑞星" :
deviceCodeParamEntity3 . setRegisterAddr ( "0046" ) ; //实际水温
deviceCodeParamEntity3 . setFunCode ( "03" ) ;
deviceCodeParamEntity3 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity3 . setDeviceName ( devices . getDeviceName ( ) ) ;
deviceCodeParamEntity3 . setDeviceType ( devices . getDeviceType ( ) ) ;
deviceCodeParamEntity3 . setBaudrate ( devices . getBaudRate ( ) ) ;
deviceCodeParamEntity3 . setBrand ( devices . getBrand ( ) ) ;
deviceCodeParamEntity3 . setDataCom ( devices . getDataCom ( ) ) ;
deviceCodeParamEntity3 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity3 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity3 ) ;
break ;
default :
break ;
}
// if (devices.getBrand().equals("美的")) {
// DeviceCodeParamEntity deviceCodeParamEntity3 = new DeviceCodeParamEntity();
// deviceCodeParamEntity3.setRegisterAddr("0007");//水温
// deviceCodeParamEntity3.setFunCode("03");
// deviceCodeParamEntity3.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity3.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity3.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity3.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity3.setBrand(devices.getBrand());
// deviceCodeParamEntity3.setDataCom(devices.getDataCom());
// deviceCodeParamEntity3.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity3.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity3);
//
// } else if (devices.getBrand().equals("美的2")) {
//
// DeviceCodeParamEntity deviceCodeParamEntity3 = new DeviceCodeParamEntity();
// deviceCodeParamEntity3.setRegisterAddr("0064");//水温
// deviceCodeParamEntity3.setFunCode("03");
// deviceCodeParamEntity3.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity3.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity3.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity3.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity3.setBrand(devices.getBrand());
// deviceCodeParamEntity3.setDataCom(devices.getDataCom());
// deviceCodeParamEntity3.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity3.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity3);
// }
}
}
deviceCodeParamService . insertDeviceCodeParamList ( deviceCodeParamEntityList ) ;
deviceCodeParamService . insertDeviceCodeParamList ( deviceCodeParamEntityList ) ;
}
}
@ -689,8 +732,9 @@ public class GetReadOrder485 {
for ( DeviceInstallEntity devices : deviceList1 ) {
for ( DeviceInstallEntity devices : deviceList1 ) {
List < DeviceCodeParamEntity > deviceCodeParamEntityList = new ArrayList < > ( ) ;
List < DeviceCodeParamEntity > deviceCodeParamEntityList = new ArrayList < > ( ) ;
if ( devices . getDeviceType ( ) . equals ( "热泵" ) ) {
if ( devices . getDeviceType ( ) . equals ( "热泵" ) ) {
if ( devices . getBrand ( ) . equals ( "美的" ) ) {
DeviceCodeParamEntity deviceCodeParamEntity1 = new DeviceCodeParamEntity ( ) ;
DeviceCodeParamEntity deviceCodeParamEntity1 = new DeviceCodeParamEntity ( ) ;
switch ( devices . getBrand ( ) ) {
case "美的" :
deviceCodeParamEntity1 . setRegisterAddr ( "0641" ) ; //运行状态
deviceCodeParamEntity1 . setRegisterAddr ( "0641" ) ; //运行状态
deviceCodeParamEntity1 . setFunCode ( "03" ) ;
deviceCodeParamEntity1 . setFunCode ( "03" ) ;
deviceCodeParamEntity1 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity1 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
@ -702,8 +746,8 @@ public class GetReadOrder485 {
deviceCodeParamEntity1 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity1 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity1 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity1 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity1 ) ; //添加到列表
deviceCodeParamEntityList . add ( deviceCodeParamEntity1 ) ; //添加到列表
} else if ( devices . getBrand ( ) . equals ( "美的2" ) ) {
break ;
DeviceCodeParamEntity deviceCodeParamEntity1 = new DeviceCodeParamEntity ( ) ;
case "美的2" :
deviceCodeParamEntity1 . setRegisterAddr ( "0BBD" ) ; //运行状态
deviceCodeParamEntity1 . setRegisterAddr ( "0BBD" ) ; //运行状态
deviceCodeParamEntity1 . setFunCode ( "03" ) ;
deviceCodeParamEntity1 . setFunCode ( "03" ) ;
deviceCodeParamEntity1 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity1 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
@ -715,7 +759,51 @@ public class GetReadOrder485 {
deviceCodeParamEntity1 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity1 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity1 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity1 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity1 ) ; //添加到列表
deviceCodeParamEntityList . add ( deviceCodeParamEntity1 ) ; //添加到列表
}
break ;
case "瑞星" :
deviceCodeParamEntity1 . setRegisterAddr ( "0001" ) ; //运行状态
deviceCodeParamEntity1 . setFunCode ( "03" ) ;
deviceCodeParamEntity1 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity1 . setDeviceName ( devices . getDeviceName ( ) ) ;
deviceCodeParamEntity1 . setDeviceType ( devices . getDeviceType ( ) ) ;
deviceCodeParamEntity1 . setBaudrate ( devices . getBaudRate ( ) ) ;
deviceCodeParamEntity1 . setBrand ( devices . getBrand ( ) ) ;
deviceCodeParamEntity1 . setDataCom ( devices . getDataCom ( ) ) ;
deviceCodeParamEntity1 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity1 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity1 ) ; //添加到列表
break ;
default :
break ;
}
// if (devices.getBrand().equals("美的")) {
// DeviceCodeParamEntity deviceCodeParamEntity1 = new DeviceCodeParamEntity();
// deviceCodeParamEntity1.setRegisterAddr("0641"); //运行状态
// deviceCodeParamEntity1.setFunCode("03");
// deviceCodeParamEntity1.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity1.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity1.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity1.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity1.setBrand(devices.getBrand());
// deviceCodeParamEntity1.setDataCom(devices.getDataCom());
// deviceCodeParamEntity1.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity1.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity1);//添加到列表
// } else if (devices.getBrand().equals("美的2")) {
// DeviceCodeParamEntity deviceCodeParamEntity1 = new DeviceCodeParamEntity();
// deviceCodeParamEntity1.setRegisterAddr("0BBD"); //运行状态
// deviceCodeParamEntity1.setFunCode("03");
// deviceCodeParamEntity1.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity1.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity1.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity1.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity1.setBrand(devices.getBrand());
// deviceCodeParamEntity1.setDataCom(devices.getDataCom());
// deviceCodeParamEntity1.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity1.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity1);//添加到列表
// }
}
}
deviceCodeParamService . insertDeviceCodeParamList2 ( deviceCodeParamEntityList ) ;
deviceCodeParamService . insertDeviceCodeParamList2 ( deviceCodeParamEntityList ) ;
}
}
@ -731,8 +819,10 @@ public class GetReadOrder485 {
for ( DeviceInstallEntity devices : deviceList1 ) {
for ( DeviceInstallEntity devices : deviceList1 ) {
List < DeviceCodeParamEntity > deviceCodeParamEntityList = new ArrayList < > ( ) ;
List < DeviceCodeParamEntity > deviceCodeParamEntityList = new ArrayList < > ( ) ;
if ( devices . getDeviceType ( ) . equals ( "热泵" ) ) {
if ( devices . getDeviceType ( ) . equals ( "热泵" ) ) {
if ( devices . getBrand ( ) . equals ( "美的" ) ) {
DeviceCodeParamEntity deviceCodeParamEntity2 = new DeviceCodeParamEntity ( ) ;
DeviceCodeParamEntity deviceCodeParamEntity2 = new DeviceCodeParamEntity ( ) ;
DeviceCodeParamEntity deviceCodeParamEntity4 = new DeviceCodeParamEntity ( ) ;
switch ( devices . getBrand ( ) ) {
case "美的" :
deviceCodeParamEntity2 . setRegisterAddr ( "0642" ) ; //设定温度
deviceCodeParamEntity2 . setRegisterAddr ( "0642" ) ; //设定温度
deviceCodeParamEntity2 . setFunCode ( "03" ) ;
deviceCodeParamEntity2 . setFunCode ( "03" ) ;
deviceCodeParamEntity2 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity2 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
@ -745,7 +835,6 @@ public class GetReadOrder485 {
deviceCodeParamEntity2 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity2 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity2 ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity2 ) ;
DeviceCodeParamEntity deviceCodeParamEntity4 = new DeviceCodeParamEntity ( ) ;
deviceCodeParamEntity4 . setRegisterAddr ( "000B" ) ; //故障状态
deviceCodeParamEntity4 . setRegisterAddr ( "000B" ) ; //故障状态
deviceCodeParamEntity4 . setFunCode ( "03" ) ;
deviceCodeParamEntity4 . setFunCode ( "03" ) ;
deviceCodeParamEntity4 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity4 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
@ -757,10 +846,8 @@ public class GetReadOrder485 {
deviceCodeParamEntity4 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity4 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity4 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity4 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity4 ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity4 ) ;
break ;
} else if ( devices . getBrand ( ) . equals ( "美的2" ) ) {
case "美的2" :
DeviceCodeParamEntity deviceCodeParamEntity2 = new DeviceCodeParamEntity ( ) ;
deviceCodeParamEntity2 . setRegisterAddr ( "0003" ) ; //设定温度
deviceCodeParamEntity2 . setRegisterAddr ( "0003" ) ; //设定温度
deviceCodeParamEntity2 . setFunCode ( "03" ) ;
deviceCodeParamEntity2 . setFunCode ( "03" ) ;
deviceCodeParamEntity2 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity2 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
@ -773,7 +860,6 @@ public class GetReadOrder485 {
deviceCodeParamEntity2 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity2 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity2 ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity2 ) ;
DeviceCodeParamEntity deviceCodeParamEntity4 = new DeviceCodeParamEntity ( ) ;
deviceCodeParamEntity4 . setRegisterAddr ( "0BBB" ) ; //故障状态
deviceCodeParamEntity4 . setRegisterAddr ( "0BBB" ) ; //故障状态
deviceCodeParamEntity4 . setFunCode ( "03" ) ;
deviceCodeParamEntity4 . setFunCode ( "03" ) ;
deviceCodeParamEntity4 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity4 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
@ -785,7 +871,88 @@ public class GetReadOrder485 {
deviceCodeParamEntity4 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity4 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity4 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntity4 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity4 ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity4 ) ;
}
break ;
case "瑞星" :
deviceCodeParamEntity2 . setRegisterAddr ( "000A" ) ; //设定温度
deviceCodeParamEntity2 . setFunCode ( "03" ) ;
deviceCodeParamEntity2 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity2 . setDeviceName ( devices . getDeviceName ( ) ) ;
deviceCodeParamEntity2 . setDeviceType ( devices . getDeviceType ( ) ) ;
deviceCodeParamEntity2 . setBaudrate ( devices . getBaudRate ( ) ) ;
deviceCodeParamEntity2 . setBrand ( devices . getBrand ( ) ) ;
deviceCodeParamEntity2 . setDataCom ( devices . getDataCom ( ) ) ;
deviceCodeParamEntity2 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity2 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity2 ) ;
deviceCodeParamEntity4 . setRegisterAddr ( "0050" ) ; //故障状态
deviceCodeParamEntity4 . setFunCode ( "03" ) ;
deviceCodeParamEntity4 . setDeviceAddr ( devices . getDeviceAddr ( ) ) ;
deviceCodeParamEntity4 . setDeviceName ( devices . getDeviceName ( ) ) ;
deviceCodeParamEntity4 . setDeviceType ( devices . getDeviceType ( ) ) ;
deviceCodeParamEntity4 . setBaudrate ( devices . getBaudRate ( ) ) ;
deviceCodeParamEntity4 . setBrand ( devices . getBrand ( ) ) ;
deviceCodeParamEntity4 . setDataCom ( devices . getDataCom ( ) ) ;
deviceCodeParamEntity4 . setBuildingId ( devices . getBuildingId ( ) ) ;
deviceCodeParamEntity4 . setParity ( devices . getParity ( ) ) ;
deviceCodeParamEntityList . add ( deviceCodeParamEntity4 ) ;
break ;
}
// if (devices.getBrand().equals("美的")) {
// DeviceCodeParamEntity deviceCodeParamEntity2 = new DeviceCodeParamEntity();
// deviceCodeParamEntity2.setRegisterAddr("0642");//设定温度
// deviceCodeParamEntity2.setFunCode("03");
// deviceCodeParamEntity2.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity2.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity2.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity2.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity2.setBrand(devices.getBrand());
// deviceCodeParamEntity2.setDataCom(devices.getDataCom());
// deviceCodeParamEntity2.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity2.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity2);
//
// DeviceCodeParamEntity deviceCodeParamEntity4 = new DeviceCodeParamEntity();
// deviceCodeParamEntity4.setRegisterAddr("000B");//故障状态
// deviceCodeParamEntity4.setFunCode("03");
// deviceCodeParamEntity4.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity4.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity4.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity4.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity4.setBrand(devices.getBrand());
// deviceCodeParamEntity4.setDataCom(devices.getDataCom());
// deviceCodeParamEntity4.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity4.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity4);
//
// } else if (devices.getBrand().equals("美的2")) {
//
// DeviceCodeParamEntity deviceCodeParamEntity2 = new DeviceCodeParamEntity();
// deviceCodeParamEntity2.setRegisterAddr("0003");//设定温度
// deviceCodeParamEntity2.setFunCode("03");
// deviceCodeParamEntity2.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity2.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity2.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity2.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity2.setBrand(devices.getBrand());
// deviceCodeParamEntity2.setDataCom(devices.getDataCom());
// deviceCodeParamEntity2.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity2.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity2);
//
// DeviceCodeParamEntity deviceCodeParamEntity4 = new DeviceCodeParamEntity();
// deviceCodeParamEntity4.setRegisterAddr("0BBB");//故障状态
// deviceCodeParamEntity4.setFunCode("03");
// deviceCodeParamEntity4.setDeviceAddr(devices.getDeviceAddr());
// deviceCodeParamEntity4.setDeviceName(devices.getDeviceName());
// deviceCodeParamEntity4.setDeviceType(devices.getDeviceType());
// deviceCodeParamEntity4.setBaudrate(devices.getBaudRate());
// deviceCodeParamEntity4.setBrand(devices.getBrand());
// deviceCodeParamEntity4.setDataCom(devices.getDataCom());
// deviceCodeParamEntity4.setBuildingId(devices.getBuildingId());
// deviceCodeParamEntity4.setParity(devices.getParity());
// deviceCodeParamEntityList.add(deviceCodeParamEntity4);
// }
}
}
if ( devices . getDeviceType ( ) . equals ( "水位开关" ) ) {
if ( devices . getDeviceType ( ) . equals ( "水位开关" ) ) {
if ( devices . getBrand ( ) . equals ( "远向" ) ) {
if ( devices . getBrand ( ) . equals ( "远向" ) ) {