From d6a8ec6bd20afc7cc856b72f0b83f9103b7f5c5a Mon Sep 17 00:00:00 2001 From: cherishsince Date: Wed, 24 Apr 2024 20:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9Amodal=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=9F=A5=E8=AF=A2=E7=9A=84=E9=83=BD=E6=98=AF=E6=9C=AA?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E7=9A=84modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/ai/service/impl/AiChatModalServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/impl/AiChatModalServiceImpl.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/impl/AiChatModalServiceImpl.java index 0e043eafb..8f3e3a881 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/impl/AiChatModalServiceImpl.java +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/impl/AiChatModalServiceImpl.java @@ -36,6 +36,8 @@ public class AiChatModalServiceImpl implements AiChatModalService { @Override public PageResult list(AiChatModalListReq req) { LambdaQueryWrapperX queryWrapperX = new LambdaQueryWrapperX<>(); + // 查询的都是未禁用的模型 + queryWrapperX.eq(AiChatModalDO::getDisable, AiChatModalDisableEnum.NO.getValue()); // search if (!StrUtil.isBlank(req.getSearch())) { queryWrapperX.like(AiChatModalDO::getModelName, req.getSearch().trim());