潘志宝
2024-09-12 ac6fb5406fccf2d9a0e39ae5e299c7fa207978da
提交 | 用户 | 时间
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>()
16                 .likeIfPresent(HttpTagEntity::getTagType, reqVO.getTagType())
17                 .likeIfPresent(HttpTagEntity::getTagCode, reqVO.getTagCode())
18                 .likeIfPresent(HttpTagEntity::getTagName, reqVO.getTagName())
19                 .orderByDesc(HttpTagEntity::getCreateTime));
20     }
21 }