liriming
2024-08-27 c7f70933adf89a163d0049c907492a6df60cb45f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.iailab.module.data.channel.http.dao;
 
import com.iailab.framework.common.pojo.PageResult;
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
import com.iailab.module.data.channel.http.entity.HttpTokenEntity;
import com.iailab.module.data.channel.http.vo.HttpTokenPageReqVO;
import org.apache.ibatis.annotations.Mapper;
 
@TenantDS
@Mapper
public interface HttpTokenDao extends BaseMapperX<HttpTokenEntity> {
    default PageResult<HttpTokenEntity> selectPage(HttpTokenPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<HttpTokenEntity>()
                .likeIfPresent(HttpTokenEntity::getClientId, reqVO.getClientId())
                .orderByDesc(HttpTokenEntity::getExpireTime));
    }
}