Browse Source

fix : 设备本地编码不展示

lvxianyun 3 years ago
parent
commit
3e166205d8

+ 10 - 0
src/main/java/com/persagy/proxy/report/controller/AdmReportEquipController.java

@@ -95,6 +95,16 @@ public class AdmReportEquipController {
                 } else {
                     equip.setCount(0);
                 }
+                //特殊处理前端需要展示的字段
+                if(StrUtil.isNotEmpty(equip.getLocalId())){
+                    equip.getInfos().put("localId",equip.getLocalId());
+                }
+                if(StrUtil.isNotEmpty(equip.getBimId())){
+                    equip.getInfos().put("bimId",equip.getBimId());
+                }
+                if(StrUtil.isNotEmpty(equip.getBimLocation())){
+                    equip.getInfos().put("bimLocation",equip.getBimLocation());
+                }
             });
             //查询设备的类型信息,取list中的第一个数据
             AdmEquipment admEquipment = equipmentList.get(0);