列表界面里面的设备类型列改成显示设备类别
This commit is contained in:
@ -27,6 +27,16 @@ public class SiteDeviceListVo {
|
||||
private String parentId;
|
||||
/** 单体电池个数-仅stack设备下有 */
|
||||
private int batteryNum;
|
||||
/** 设备类型名称 */
|
||||
private String categoryName;
|
||||
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
|
||||
public void setCategoryName(String categoryName) {
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public String getSiteId() {
|
||||
return siteId;
|
||||
|
||||
@ -93,6 +93,8 @@ public class EmsSiteServiceImpl implements IEmsSiteService
|
||||
List<EmsBatteryData> batteryDataList = redisCache.getCacheList(RedisKeyConstants.BATTERY + siteId + "_" + clusterId);
|
||||
siteDeviceListVo.setBatteryNum(batteryDataList == null ? 0 : batteryDataList.size());
|
||||
}
|
||||
String categoryName = DeviceCategory.getInfoByCode(deviceCategory);
|
||||
siteDeviceListVo.setCategoryName(categoryName);
|
||||
}
|
||||
return resultData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user