提交 | 用户 | 时间
|
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.HttpTokenEntity; |
|
8 |
import com.iailab.module.data.channel.http.vo.HttpTokenPageReqVO; |
|
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
|
|
11 |
@TenantDS |
|
12 |
@Mapper |
|
13 |
public interface HttpTokenDao extends BaseMapperX<HttpTokenEntity> { |
|
14 |
default PageResult<HttpTokenEntity> selectPage(HttpTokenPageReqVO reqVO) { |
|
15 |
return selectPage(reqVO, new LambdaQueryWrapperX<HttpTokenEntity>() |
|
16 |
.likeIfPresent(HttpTokenEntity::getClientId, reqVO.getClientId()) |
|
17 |
.orderByDesc(HttpTokenEntity::getExpireTime)); |
|
18 |
} |
|
19 |
} |