修改/device/detail/gongdianChart数据转换异常
This commit is contained in:
parent
26d56dd1f7
commit
a29e547c4e
@ -266,12 +266,13 @@ public class DeviceDetailServiceImpl implements IDeviceDetailService {
|
|||||||
put("name", haiWeiPropertyVo.getNameCn());
|
put("name", haiWeiPropertyVo.getNameCn());
|
||||||
}};
|
}};
|
||||||
if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_MpptDown")){
|
if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_MpptDown")){
|
||||||
hashMap.put("value", Float.parseFloat(haiWeiPropertyVo.getValue().toString()) == 1f?
|
|
||||||
"异常":"正常");
|
hashMap.put("value", NumberUtils.isNumeric(haiWeiPropertyVo.getValue().toString())?(
|
||||||
|
Float.parseFloat(haiWeiPropertyVo.getValue().toString()) == 1f?"正常":"异常"):"正常");
|
||||||
}
|
}
|
||||||
if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_市电状态")){
|
if(haiWeiPropertyVo.getNameEn().equals("三菱FX2N_1_市电状态")){
|
||||||
hashMap.put("value", Float.parseFloat(haiWeiPropertyVo.getValue().toString()) == 1f?
|
hashMap.put("value", NumberUtils.isNumeric(haiWeiPropertyVo.getValue().toString())?(
|
||||||
"市电":"太阳能");
|
Float.parseFloat(haiWeiPropertyVo.getValue().toString()) == 1f?"市电":"太阳能"):"市电");
|
||||||
}
|
}
|
||||||
list.add(hashMap);
|
list.add(hashMap);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user