获取指定站点下的指定设备类型的设备
This commit is contained in:
@ -31,4 +31,6 @@ public interface IEmsDeviceSettingService
|
||||
public List<String> getSiteAllDeviceCategory(String siteId);
|
||||
// 初始化设备信息
|
||||
public Map<String, List<EmsDevicesSetting>> initDeviceInfo();
|
||||
|
||||
public List<Map<String, Object>> getDeviceListBySiteAndCategory(String siteId, String deviceCategory);
|
||||
}
|
||||
|
||||
@ -445,4 +445,9 @@ public class EmsDeviceSettingServiceImpl implements IEmsDeviceSettingService
|
||||
redisCache.setCacheObject(RedisKeyConstants.INIT_DEVICE_INFO, map, 30, TimeUnit.DAYS);
|
||||
return map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, Object>> getDeviceListBySiteAndCategory(String siteId, String deviceCategory) {
|
||||
return emsDevicesMapper.getDeviceInfosBySiteIdAndCategory(siteId, deviceCategory);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user