From ce176912be397dc7d862562e24917e65b2a1a48d Mon Sep 17 00:00:00 2001 From: luyie Date: Thu, 26 Sep 2024 15:33:03 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix:=E9=97=AE=E9=A2=98=E6=A0=87=E6=B3=A8?= =?UTF-8?q?=EF=BC=8C=E6=A0=87=E6=B3=A8=E4=BA=BA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/controller/AgentLogController.java | 20 ++++++++++++- .../maintenance/entity/AgentLogEntity.java | 7 ++++- .../maintenance/mapper/AgentLogMapper.java | 3 ++ .../maintenance/service/AgentLogService.java | 2 ++ .../service/impl/AgentLogServiceImpl.java | 34 ++++++++++++++++++---- 5 files changed, 59 insertions(+), 7 deletions(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/AgentLogController.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/AgentLogController.java index 04d3510..34ee1ec 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/AgentLogController.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/AgentLogController.java @@ -13,10 +13,15 @@ import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; +import org.springblade.core.secure.BladeUser; +import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.Func; import org.springframework.web.bind.annotation.*; +import java.util.HashMap; +import java.util.Map; + /** * @Author: ypj * @Date: 2024/9/9 10:37 @@ -40,7 +45,11 @@ public class AgentLogController { @ApiOperation(value = "查看详情") @ApiOperationSupport(order = 2) public R detail(@RequestParam @ApiParam("主键ID") Long id) { - return R.data(agentLogService.getById(id)); + AgentLogEntity result = agentLogService.getById(id); + if (result != null) { + result.setLabelOperator(agentLogService.getUsername(result.getLabelOperatorId())); + } + return R.data(result); } @PostMapping("/save") @@ -77,4 +86,13 @@ public class AgentLogController { public R label(@RequestBody LabelRequest req) { return R.status(agentLogService.label(req)); } + + @GetMapping("/test") + public R test(@RequestHeader("Hzinfo-Auth") String token) { + BladeUser user = AuthUtil.getUser(); + Map result = new HashMap<>(); + result.put("user", user); + result.put("token", token); + return R.data(result); + } } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/entity/AgentLogEntity.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/entity/AgentLogEntity.java index 0df71b8..aa31bc1 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/entity/AgentLogEntity.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/entity/AgentLogEntity.java @@ -82,9 +82,14 @@ public class AgentLogEntity extends TenantEntity implements Serializable { @TableField("label_content") private String labelContent; + @ApiModelProperty("标注人id") + @QueryField(condition = SqlCondition.EQUAL) + @TableField("label_operator") + private String labelOperatorId; + @ApiModelProperty("标注人名称") @QueryField(condition = SqlCondition.LIKE) - @TableField("label_operator") + @TableField(exist = false) private String labelOperator; @ApiModelProperty("标注时间") diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/mapper/AgentLogMapper.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/mapper/AgentLogMapper.java index 7a1ede1..332a7de 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/mapper/AgentLogMapper.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/mapper/AgentLogMapper.java @@ -1,5 +1,6 @@ package com.hnac.gglm.bigmodel.maintenance.mapper; +import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hnac.gglm.bigmodel.maintenance.entity.AgentLogEntity; @@ -7,5 +8,7 @@ import com.hnac.gglm.bigmodel.maintenance.entity.AgentLogEntity; * @Author: ypj * @Date: 2024/9/9 11:07 */ + +@DS("hznlm") public interface AgentLogMapper extends BaseMapper { } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/AgentLogService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/AgentLogService.java index 3f9a059..e7dc769 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/AgentLogService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/AgentLogService.java @@ -16,4 +16,6 @@ public interface AgentLogService extends IService { Boolean label(LabelRequest req); IPage listPage(IPage page, AgentLogEntity req); + + String getUsername(String userIdStr); } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/impl/AgentLogServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/impl/AgentLogServiceImpl.java index 64b1848..cdb7a6f 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/impl/AgentLogServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/impl/AgentLogServiceImpl.java @@ -1,6 +1,5 @@ package com.hnac.gglm.bigmodel.maintenance.service.impl; -import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; @@ -13,8 +12,11 @@ import com.hnac.gglm.bigmodel.maintenance.vo.LabelRequest; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springblade.core.secure.utils.AuthUtil; +import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.ObjectUtil; import org.springblade.core.tool.utils.StringUtil; +import org.springblade.system.user.entity.User; +import org.springblade.system.user.feign.IUserClient; import org.springframework.stereotype.Service; import java.util.Date; @@ -26,8 +28,8 @@ import java.util.Date; @Service @Slf4j @AllArgsConstructor -@DS("hznlm") public class AgentLogServiceImpl extends ServiceImpl implements AgentLogService { + private final IUserClient userClient; @Override public Boolean BatchLabel(IdsRequest ids) { @@ -35,7 +37,7 @@ public class AgentLogServiceImpl extends ServiceImpllambdaUpdate() .set(AgentLogEntity::getLabelStatus, 1) .set(AgentLogEntity::getLabelResult, 1) - .set(AgentLogEntity::getLabelOperator, AuthUtil.getUserName()) + .set(AgentLogEntity::getLabelOperatorId, AuthUtil.getUserId()) .set(AgentLogEntity::getLabelTime, now) .set(AgentLogEntity::getUpdateTime, now) .in(AgentLogEntity::getId, ids.getIds())); @@ -51,7 +53,7 @@ public class AgentLogServiceImpl extends ServiceImpl pageResult = baseMapper.selectPage(page, queryWrapper); + pageResult.getRecords().forEach(item -> { + String userIdStr = item.getLabelOperatorId(); + String userName = getUsername(userIdStr); + item.setLabelOperator(userName == null ? userIdStr : userName); + }); + return pageResult; + } + + @Override + public String getUsername(String userIdStr) { + String userName = null; + if (null != userIdStr) { + try { + Long userId = Long.parseLong(userIdStr); + R userR = userClient.userInfoById(userId); + if (userR.isSuccess() && userR.getData() != null) { + userName = userR.getData().getName(); + } + } catch (Exception ignore) { + } + } + return userName; } } From bafa53fce2fcea3141b83cec162df08ff501340b Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 26 Sep 2024 16:04:21 +0800 Subject: [PATCH 2/6] =?UTF-8?q?fix:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E9=81=A5?= =?UTF-8?q?=E6=8E=A7=E6=8C=87=E4=BB=A4type=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java | 3 ++- .../hnac/gglm/bigmodel/maintenance/service/DataInstructService.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java index 3677b0b..c712395 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInteractiveServiceImpl.java @@ -17,8 +17,8 @@ import com.hnac.gglm.bigmodel.interactive.vo.AuthDataVO; import com.hnac.gglm.bigmodel.interactive.vo.ExtraVO; import com.hnac.gglm.bigmodel.interactive.vo.SessionContentVO; import com.hnac.gglm.bigmodel.manager.SessionRedisManager; -import groovy.util.logging.Slf4j; import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springblade.core.log.exception.ServiceException; import org.springblade.core.tool.utils.BeanUtil; import org.springblade.core.tool.utils.Func; @@ -97,6 +97,7 @@ public class HznlmInteractiveServiceImpl implements IHznlmInteractiveService { } String levelAuth = ParamCache.getValue(ParamKeyConstants.LIBRARY_AUTH_LEVEL); result.put("levelAuth",Optional.ofNullable(levelAuth).map(Integer::valueOf).orElse(0)); + log.info("知识库鉴权:{}",result); return result; } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataInstructService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataInstructService.java index f12b37a..eb9049f 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataInstructService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataInstructService.java @@ -58,7 +58,7 @@ public class DataInstructService extends BaseServiceImpl list = baseMapper.selectList(null); List deviceFuncDTOS = BeanUtil.copyProperties(list, DeviceFuncDTO.class); if(Func.isNotEmpty(deviceFuncDTOS)) { - deviceFuncDTOS.forEach(deviceFuncDTO -> deviceFuncDTO.setType("业务")); + deviceFuncDTOS.forEach(deviceFuncDTO -> deviceFuncDTO.setType("数据中心")); result.addAll(deviceFuncDTOS); } List deviceFuncList = vectorDataService.getDeviceFunc(); From 7416afb83597a00dba48e6f18e769277d22ea302 Mon Sep 17 00:00:00 2001 From: wangyinsheng <2310589501@qq.com> Date: Thu, 26 Sep 2024 16:22:10 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/controller/DataInstructController.java | 11 ++++------- .../gglm/bigmodel/maintenance/service/DataRecordService.java | 8 ++++---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java index 1d0dfa5..999e572 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/controller/DataInstructController.java @@ -50,14 +50,11 @@ public class DataInstructController { @ApiOperationSupport(order = 3) public R> listPage(Query query, DataInstructEntity req) { QueryWrapper wrapper = new QueryWrapper<>(); - if (StringUtils.isNotBlank(req.getItemId())) { - wrapper.lambda().eq(DataInstructEntity::getItemId, req.getItemId()); + if (StringUtils.isNotBlank(req.getStationName())) { + wrapper.lambda().like(DataInstructEntity::getStationName, req.getStationName()); } - if (StringUtils.isNotBlank(req.getStationId())) { - wrapper.lambda().eq(DataInstructEntity::getStationId, req.getStationId()); - } - if (StringUtils.isNotBlank(req.getDeviceId())) { - wrapper.lambda().eq(DataInstructEntity::getDeviceId, req.getDeviceId()); + if (StringUtils.isNotBlank(req.getDeviceName())) { + wrapper.lambda().like(DataInstructEntity::getDeviceName, req.getDeviceName()); } if (StringUtils.isNotBlank(req.getYkName())) { wrapper.lambda().like(DataInstructEntity::getYkName, req.getYkName()); diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java index a34fd0a..820dd90 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/DataRecordService.java @@ -52,11 +52,11 @@ public class DataRecordService extends BaseServiceImpl Date: Thu, 26 Sep 2024 17:29:34 +0800 Subject: [PATCH 4/6] =?UTF-8?q?fix:=E7=9F=A5=E8=AF=86=E5=BA=93=E5=88=A0?= =?UTF-8?q?=E9=99=A4=EF=BC=8C=E5=90=8C=E6=AD=A5=E5=90=91=E9=87=8F=E5=BA=93?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gglm/bigmodel/maintenance/service/KnowledgeFileInfoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/KnowledgeFileInfoService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/KnowledgeFileInfoService.java index db445bb..330dce6 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/KnowledgeFileInfoService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/service/KnowledgeFileInfoService.java @@ -17,7 +17,7 @@ import java.util.List; */ public interface KnowledgeFileInfoService extends IService { String SEGMENT_URL = "/kn/doc_segment"; - String VECTOR_DATABASE_NAME = "knowledge_data"; + String VECTOR_DATABASE_NAME = "Hzims_knowledge_data"; Boolean store(IdRequest req); From aaebd84875e0e825670199c26c2f2f1c5b66b02b Mon Sep 17 00:00:00 2001 From: luyie Date: Fri, 27 Sep 2024 08:20:40 +0800 Subject: [PATCH 5/6] =?UTF-8?q?fix:=E5=A4=9A=E7=BB=93=E6=9E=9C=E5=88=86?= =?UTF-8?q?=E6=9E=90=EF=BC=8C=E6=99=BA=E8=B0=B1=E6=A8=A1=E5=9E=8B=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=B8=8D=E5=88=B0url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ZhipuAnalysisServiceImpl.java | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java index 6c83614..6bbca9c 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java @@ -97,15 +97,9 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { return response; } - String getSendUrl(ZhipuAnalysisFileRequest request) { + public String getSendUrl(ZhipuAnalysisFileRequest request) { if (StringUtil.isNotBlank(request.getUrl())) { - String base64 = null; - try { - base64 = FileUtil.getBase64(FileUtil.getUrlByteByRequest(request.getUrl())); - } catch (Exception e) { - log.info("get base64 error", e); - } - return StringUtil.isBlank(base64) ? request.getUrl() : base64; + return getBase64FromUrl(request.getUrl()); } Assert.isTrue(StringUtil.isNotBlank(request.getFilePath()), () -> { throw ErrorCode.GET_FILE_CONTENT_FAILURE.throwException(); @@ -117,6 +111,16 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { } } + public String getBase64FromUrl(String url) { + String base64 = null; + try { + base64 = FileUtil.getBase64(FileUtil.getUrlByteByRequest(url)); + } catch (Exception e) { + log.info("get base64 error", e); + } + return StringUtil.isBlank(base64) ? url : base64; + } + @Override public ZhipuAnalysisInfoEntity getAnalysisInfo(ZhipuAnalysisFileRequest request) { ZhipuAnalysisInfoEntity result = null; @@ -151,7 +155,7 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { ZhipuAnalyser analyser = analysisFactory.getAnalysisStrategy(infoList.get(0).getModel()); String text = getMultiAnalyserText(infoList); - Map resultMap = analyser.getResultMap(text, request.getUrl()); + Map resultMap = analyser.getResultMap(text, getBase64FromUrl(request.getUrl())); if (null == resultMap) { response.setCode(ResultCode.FAILURE.getCode()); From 51e43f5762e8db1fc009541b858172e833656757 Mon Sep 17 00:00:00 2001 From: luyie Date: Fri, 27 Sep 2024 09:53:27 +0800 Subject: [PATCH 6/6] =?UTF-8?q?fix:=E5=A4=9A=E7=BB=93=E6=9E=9C=E5=88=86?= =?UTF-8?q?=E6=9E=90=EF=BC=8C=E6=99=BA=E8=B0=B1=E6=A8=A1=E5=9E=8B=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java index 6bbca9c..1b6c95f 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/zhipuai/service/impl/ZhipuAnalysisServiceImpl.java @@ -112,6 +112,7 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { } public String getBase64FromUrl(String url) { + log.info("get base64 from url ,url : {}", url); String base64 = null; try { base64 = FileUtil.getBase64(FileUtil.getUrlByteByRequest(url)); @@ -147,7 +148,8 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { Assert.isTrue(CollectionUtil.isNotEmpty(request.getCodeList()) || CollectionUtil.isNotEmpty(request.getCheckTypeSonList()), () -> { throw ErrorCode.EMPTY_ANALYSIS_TYPE.throwException(); }); - List infoList = infoService.list(Wrappers.lambdaQuery().in(CollectionUtil.isNotEmpty(request.getCodeList()), ZhipuAnalysisInfoEntity::getCode, request.getCodeList()) + List infoList = infoService.list(Wrappers.lambdaQuery() + .in(CollectionUtil.isNotEmpty(request.getCodeList()), ZhipuAnalysisInfoEntity::getCode, request.getCodeList()) .in(CollectionUtil.isNotEmpty(request.getCheckTypeSonList()), ZhipuAnalysisInfoEntity::getCheckTypeSon, request.getCheckTypeSonList())); Assert.isTrue(CollectionUtil.isNotEmpty(infoList), () -> { throw ErrorCode.UNKNOWN_ANALYSIS_TYPE.throwException(); @@ -211,7 +213,7 @@ public class ZhipuAnalysisServiceImpl implements ZhipuAnalysisService { formatBuilder.append("{"); for (int index = 1; index <= infoList.size(); index++) { ZhipuAnalysisInfoEntity infoEntity = infoList.get(index - 1); - stringBuilder.append(StringUtil.format(MULTI_QUESTION_PREFIX, index)); + stringBuilder.append(StringUtil.format(MULTI_QUESTION_PREFIX, index)).append(infoEntity.getRequestContent()); titleBuilder.append(StringUtil.format(MULTI_QUESTION_CONSTRAINS_LIST, infoEntity.getResultKey(), index)); formatBuilder.append(infoEntity.getRequestOutputFormat()).append(","); }