环境监测页面部分接口

This commit is contained in:
fl 2025-04-24 10:51:43 +08:00
parent ef1842db4f
commit 0d61c1364b
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class TowerCraneDetectionServiceImpl implements TowerCraneDetectionServic
constInfoVo.setTypeCode(TypeCodeUtils.TC_CODE);
List<ConstInfoVo> collectDevVoList = mapper.getConstDeviceList(constInfoVo);
collectDevVoList.forEach(item -> {
if(item != null && item.getConfigData() != null){
if(item != null && item.getConfigData() != null && !item.getConfigData().isEmpty()){
JSONObject jsonObject = JsonHelper.jsonStrToJsonObj(item.getConfigData());
item.setTowerCraneInfo(JsonHelper.jsonObjToBean(jsonObject.getJSONObject("deviceDetail"), TowerCraneInfoVo.class));
}