[Feature]MM2管理-补充集群Group列表信息(#894)

This commit is contained in:
zengqiao
2023-02-09 16:56:36 +08:00
committed by EricZeng
parent ab6a4d7099
commit e5c6d00438
5 changed files with 20 additions and 58 deletions

View File

@@ -58,6 +58,7 @@ public interface GroupService {
/**
* DB-GroupTopic相关接口
*/
List<GroupMemberPO> listGroupByCluster(Long clusterPhyId);
List<GroupMemberPO> listGroupByTopic(Long clusterPhyId, String topicName);
PaginationResult<GroupMemberPO> pagingGroupMembers(Long clusterPhyId,

View File

@@ -224,6 +224,14 @@ public class GroupServiceImpl extends BaseKafkaVersionControlService implements
return GroupStateEnum.getByState(poList.get(0).getState());
}
@Override
public List<GroupMemberPO> listGroupByCluster(Long clusterPhyId) {
LambdaQueryWrapper<GroupMemberPO> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(GroupMemberPO::getClusterPhyId, clusterPhyId);
return groupMemberDAO.selectList(lambdaQueryWrapper);
}
@Override
public List<GroupMemberPO> listGroupByTopic(Long clusterPhyId, String topicName) {
LambdaQueryWrapper<GroupMemberPO> lambdaQueryWrapper = new LambdaQueryWrapper<>();