列表界面里面的设备类型列改成显示设备类别

This commit is contained in:
2025-10-21 15:25:23 +08:00
parent 76b30c715c
commit b776f6ff76
3 changed files with 21 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}