From 9e4e3628813c4a9747b0b962ec5f51d047f6230e Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Wed, 25 Sep 2024 18:34:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20weaviate=E5=90=8C=E6=AD=A5=E5=90=91?= =?UTF-8?q?=E9=87=8F=E8=AE=A1=E7=AE=97bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hnac/hzims/fdp/constants/ScheduledConstant.java | 2 +- .../interactive/controller/FontEndInteractiveController.java | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/constants/ScheduledConstant.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/constants/ScheduledConstant.java index c42035c..3ec0543 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/constants/ScheduledConstant.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/constants/ScheduledConstant.java @@ -33,5 +33,5 @@ public interface ScheduledConstant { String DEVICE_LEDGER_DATA_GENERATE = "deviceLedgerDataGenerate"; /**设备台账数据存入向量数据库表名**/ - String DEVICE_LEDGER_CLASS_NAME = "Hzn_lm_deviceLedger_data"; + String DEVICE_LEDGER_CLASS_NAME = "Hzims_deviceLedger_data"; } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/controller/FontEndInteractiveController.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/controller/FontEndInteractiveController.java index 7efe022..c3b1d51 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/controller/FontEndInteractiveController.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/controller/FontEndInteractiveController.java @@ -89,8 +89,11 @@ public class FontEndInteractiveController { @GetMapping("/getAnswerByChatId") public R getAnswerByChatId(@RequestParam("chatId") @ApiParam("会话ID") String chatId){ List answers = hznlmInvokeService.getAnswerBySessionIds(chatId); - if(Func.isNotEmpty(answers) && answers.size() == 1 && answers.get(0).getStatus().intValue() == 0) { - return R.data(answers.get(0)); + if(Func.isNotEmpty(answers) && answers.size() == 1) { + AnswerVO answerVO = answers.get(0); + if(answerVO.getStatus().intValue() == 0 || answerVO.getStatus().intValue() == -2) { + return R.data(answerVO); + } } return R.success("操作成功!"); }