获取堆下面的簇列表入参+站点id
This commit is contained in:
@ -123,9 +123,9 @@ public class EmsSiteMonitorController extends BaseController{
|
|||||||
* 获取所有电池簇
|
* 获取所有电池簇
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getClusterNameList")
|
@GetMapping("/getClusterNameList")
|
||||||
public AjaxResult getClusterNameList(@RequestParam String stackDeviceId)
|
public AjaxResult getClusterNameList(@RequestParam String siteId, @RequestParam String stackDeviceId)
|
||||||
{
|
{
|
||||||
return success(iEmsSiteService.getAllClusterInfo(stackDeviceId));
|
return success(iEmsSiteService.getAllClusterInfo(siteId, stackDeviceId));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -21,7 +21,7 @@ public interface IEmsSiteService
|
|||||||
|
|
||||||
public List<Map<String,Object>> getAllStackInfo(String siteId);
|
public List<Map<String,Object>> getAllStackInfo(String siteId);
|
||||||
|
|
||||||
public List<Map<String,Object>> getAllClusterInfo(String stackDeviceId);
|
public List<Map<String,Object>> getAllClusterInfo(String siteId, String stackDeviceId);
|
||||||
|
|
||||||
public List<EmsSiteSetting> getAllSiteInfoList(String siteName, String startTime, String endTime);
|
public List<EmsSiteSetting> getAllSiteInfoList(String siteName, String startTime, String endTime);
|
||||||
|
|
||||||
|
|||||||
@ -52,8 +52,8 @@ public class EmsSiteServiceImpl implements IEmsSiteService
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<Map<String, Object>> getAllClusterInfo(String parentId) {
|
public List<Map<String, Object>> getAllClusterInfo(String siteId, String parentId) {
|
||||||
return emsDevicesMapper.getDeviceInfoByParentId(null,parentId);
|
return emsDevicesMapper.getDeviceInfoByParentId(siteId,parentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user