潘志宝
2024-10-13 86145e48fa25a6ff050b8f6020a0dd75b9c0d3d0
提交 | 用户 | 时间
c7f709 1 package com.iailab.module.data.channel.http.dao;
L 2
3 import com.iailab.framework.common.pojo.PageResult;
4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
5 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
6 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
7 import com.iailab.module.data.channel.http.entity.HttpTagEntity;
8 import com.iailab.module.data.channel.http.vo.HttpTagPageReqVO;
9 import org.apache.ibatis.annotations.Mapper;
10
11 @TenantDS
12 @Mapper
13 public interface HttpTagDao extends BaseMapperX<HttpTagEntity> {
14     default PageResult<HttpTagEntity> selectPage(HttpTagPageReqVO reqVO) {
15         return selectPage(reqVO, new LambdaQueryWrapperX<HttpTagEntity>()
86145e 16                 .eq(HttpTagEntity::getApiId, reqVO.getApiId())
c7f709 17                 .likeIfPresent(HttpTagEntity::getTagName, reqVO.getTagName())
L 18                 .orderByDesc(HttpTagEntity::getCreateTime));
19     }
20 }