public StringBuilder adminAddBlackGroupInfo(HttpServletRequest req,
            StringBuilder sBuffer,
            ProcessResult result) {
        // check and get operation info
        if (!WebParameterUtils.getAUDBaseInfo(req, true, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        BaseEntity opEntity = (BaseEntity) result.getRetData();
        // get group list
        if (!WebParameterUtils.getStringParamValue(req,
                WebFieldDef.COMPSGROUPNAME, true, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        Set<String> groupNameSet = (Set<String>) result.getRetData();
        // check and get topicName field
        if (!WebParameterUtils.getAndValidTopicNameInfo(req,
                defMetaDataService, true, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        Set<String> topicNameSet = (Set<String>) result.getRetData();
        // add black list records
        GroupConsumeCtrlEntity ctrlEntity;
        List<GroupProcessResult> retInfoList = new ArrayList<>();
        for (String groupName : groupNameSet) {
            for (String topicName : topicNameSet) {
                ctrlEntity = defMetaDataService.getConsumeCtrlByGroupAndTopic(
                        groupName, topicName);
                if (ctrlEntity != null
                        && ctrlEntity.getConsumeEnable() == EnableStatus.STATUS_DISABLE) {
                    result.setFailResult(DataOpErrCode.DERR_SUCCESS.getCode(), "Ok!");
                    retInfoList.add(new GroupProcessResult(groupName, topicName, result));
                    continue;
                }
                retInfoList.add(defMetaDataService.insertConsumeCtrlInfo(opEntity, groupName,
                        topicName, EnableStatus.STATUS_DISABLE, "Old API add blacklist, disable consume",
                        null, null, sBuffer, result));
            }
        }
        return buildRetInfo(retInfoList, sBuffer);
    }
Add black consumer group info

@param req       Http Servlet Request
@param sBuffer   string buffer
@param result    process result
@return    process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/handler/WebAdminGroupCtrlHandler.java