获取指定站点下的指定设备类型的设备
This commit is contained in:
@ -168,4 +168,13 @@ public class EmsSiteConfigController extends BaseController{
|
|||||||
{
|
{
|
||||||
return success(iEmsSiteService.getParentCategoryDeviceId(siteId, deviceCategory));
|
return success(iEmsSiteService.getParentCategoryDeviceId(siteId, deviceCategory));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取指定站点下的指定设备类型的设备
|
||||||
|
*/
|
||||||
|
@GetMapping("/getDeviceListBySiteAndCategory")
|
||||||
|
public AjaxResult getDeviceListBySiteAndCategory(String siteId,String deviceCategory)
|
||||||
|
{
|
||||||
|
return success(iEmsDeviceSettingService.getDeviceListBySiteAndCategory(siteId, deviceCategory));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,4 +31,6 @@ public interface IEmsDeviceSettingService
|
|||||||
public List<String> getSiteAllDeviceCategory(String siteId);
|
public List<String> getSiteAllDeviceCategory(String siteId);
|
||||||
// 初始化设备信息
|
// 初始化设备信息
|
||||||
public Map<String, List<EmsDevicesSetting>> initDeviceInfo();
|
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);
|
redisCache.setCacheObject(RedisKeyConstants.INIT_DEVICE_INFO, map, 30, TimeUnit.DAYS);
|
||||||
return map;
|
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