修改获取设备基础信息数据转换异常
This commit is contained in:
@ -534,9 +534,13 @@ public class DeviceDetailServiceImpl implements IDeviceDetailService {
|
|||||||
List<HaiWeiPropertyVo> propertyList = checkedData.getPropertyList();
|
List<HaiWeiPropertyVo> propertyList = checkedData.getPropertyList();
|
||||||
for (HaiWeiPropertyVo haiWeiPropertyVo : propertyList) {
|
for (HaiWeiPropertyVo haiWeiPropertyVo : propertyList) {
|
||||||
if (haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_市电状态")) {
|
if (haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_市电状态")) {
|
||||||
if(Float.parseFloat(haiWeiPropertyVo.getValue().toString()) == 0){
|
try{
|
||||||
deviceDetailVo.setGongDianType("太阳能");
|
if(Float.parseFloat(haiWeiPropertyVo.getValue().toString()) == 0){
|
||||||
|
deviceDetailVo.setGongDianType("太阳能");
|
||||||
|
}
|
||||||
|
}catch (Exception e){
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_bat")){
|
}else if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_bat")){
|
||||||
deviceDetailVo.setPowerDianliang(haiWeiPropertyVo.getValueAndUnit());
|
deviceDetailVo.setPowerDianliang(haiWeiPropertyVo.getValueAndUnit());
|
||||||
}else if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_batVolt")){
|
}else if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_batVolt")){
|
||||||
|
Reference in New Issue
Block a user