mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
优化:modal 默认查询的都是未禁用的modal
This commit is contained in:
parent
e4eadd8c99
commit
d6a8ec6bd2
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user