From 51e43f5762e8db1fc009541b858172e833656757 Mon Sep 17 00:00:00 2001 From: luyie Date: Fri, 27 Sep 2024 09:53:27 +0800 Subject: [PATCH] =?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(","); }