Commit d6a8ec6bd20afc7cc856b72f0b83f9103b7f5c5a
1 parent
e4eadd8c
优化:modal 默认查询的都是未禁用的modal
Showing
1 changed file
with
2 additions
and
0 deletions
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 { | @@ -36,6 +36,8 @@ public class AiChatModalServiceImpl implements AiChatModalService { | ||
| 36 | @Override | 36 | @Override |
| 37 | public PageResult<AiChatModalListRes> list(AiChatModalListReq req) { | 37 | public PageResult<AiChatModalListRes> list(AiChatModalListReq req) { |
| 38 | LambdaQueryWrapperX<AiChatModalDO> queryWrapperX = new LambdaQueryWrapperX<>(); | 38 | LambdaQueryWrapperX<AiChatModalDO> queryWrapperX = new LambdaQueryWrapperX<>(); |
| 39 | + // 查询的都是未禁用的模型 | ||
| 40 | + queryWrapperX.eq(AiChatModalDO::getDisable, AiChatModalDisableEnum.NO.getValue()); | ||
| 39 | // search | 41 | // search |
| 40 | if (!StrUtil.isBlank(req.getSearch())) { | 42 | if (!StrUtil.isBlank(req.getSearch())) { |
| 41 | queryWrapperX.like(AiChatModalDO::getModelName, req.getSearch().trim()); | 43 | queryWrapperX.like(AiChatModalDO::getModelName, req.getSearch().trim()); |