public StringBuilder adminBatchAddBlackGroupInfo(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();
        // check and get groupNameJsonSet info
        if (!getGroupCsmJsonSetInfo(req, opEntity, EnableStatus.STATUS_DISABLE,
                "Old API batch set BlackList", sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        Map<String, GroupConsumeCtrlEntity> addRecordMap =
                (Map<String, GroupConsumeCtrlEntity>) result.getRetData();
        // add or update and build result
        GroupConsumeCtrlEntity ctrlEntity;
        List<GroupProcessResult> retInfoList = new ArrayList<>();
        for (GroupConsumeCtrlEntity entry : addRecordMap.values()) {
            ctrlEntity = defMetaDataService.getConsumeCtrlByGroupAndTopic(
                    entry.getGroupName(), entry.getTopicName());
            if (ctrlEntity != null
                    && ctrlEntity.getConsumeEnable() == EnableStatus.STATUS_DISABLE) {
                result.setFailResult(DataOpErrCode.DERR_SUCCESS.getCode(), "Ok!");
                retInfoList.add(new GroupProcessResult(entry.getGroupName(),
                        entry.getTopicName(), result));
                continue;
            }
            retInfoList.add(defMetaDataService.insertConsumeCtrlInfo(entry, sBuffer, result));
        }
        return buildRetInfo(retInfoList, sBuffer);
    }
Add black consumer group info in batch

@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