class ConsumerGroupConsumerCheckServiceImpl implements RedundanceCheckService {

    @Override
    public String checkResult() {
        String result = null;
        Map<Long, ConsumerGroupEntity> consumerGroupMap = consumerGroupService.getIdCache();
        List<ConsumerEntity> consumerList =consumerService.getList();
        List<ConsumerGroupConsumerEntity> consumerGroupConsumerList=consumerGroupConsumerService.getList();
        Map<Long,ConsumerEntity> consumerMap=new HashMap<>();
        for (ConsumerEntity consumer:consumerList) {
            consumerMap.put(consumer.getId(),consumer);
        }

        result = checkConsumerGroupConsumer(consumerGroupMap, consumerMap, consumerGroupConsumerList);
        return result;
    }

}