优化:modal 默认查询的都是未禁用的modal

This commit is contained in:
cherishsince 2024-04-24 20:26:12 +08:00
parent e4eadd8c99
commit d6a8ec6bd2

View File

@ -36,6 +36,8 @@ public class AiChatModalServiceImpl implements AiChatModalService {
@Override
public PageResult<AiChatModalListRes> list(AiChatModalListReq req) {
LambdaQueryWrapperX<AiChatModalDO> queryWrapperX = new LambdaQueryWrapperX<>();
// 查询的都是未禁用的模型
queryWrapperX.eq(AiChatModalDO::getDisable, AiChatModalDisableEnum.NO.getValue());
// search
if (!StrUtil.isBlank(req.getSearch())) {
queryWrapperX.like(AiChatModalDO::getModelName, req.getSearch().trim());