获取堆下面的簇列表入参+站点id

This commit is contained in:
2025-07-29 18:38:21 +08:00
parent a12f7820cf
commit 97c667bd77
3 changed files with 5 additions and 5 deletions

View File

@ -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));
} }
/** /**

View File

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

View File

@ -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);
} }
/** /**