提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.dal.mysql.oauth2; |
H |
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.module.system.controller.admin.oauth2.vo.client.OAuth2ClientPageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.oauth2.OAuth2ClientDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
|
|
11 |
/** |
|
12 |
* OAuth2 客户端 Mapper |
|
13 |
* |
|
14 |
* @author iailab |
|
15 |
*/ |
|
16 |
@Mapper |
|
17 |
public interface OAuth2ClientMapper extends BaseMapperX<OAuth2ClientDO> { |
|
18 |
|
|
19 |
default PageResult<OAuth2ClientDO> selectPage(OAuth2ClientPageReqVO reqVO) { |
|
20 |
return selectPage(reqVO, new LambdaQueryWrapperX<OAuth2ClientDO>() |
|
21 |
.likeIfPresent(OAuth2ClientDO::getName, reqVO.getName()) |
|
22 |
.eqIfPresent(OAuth2ClientDO::getStatus, reqVO.getStatus()) |
|
23 |
.orderByDesc(OAuth2ClientDO::getId)); |
|
24 |
} |
|
25 |
|
|
26 |
default OAuth2ClientDO selectByClientId(String clientId) { |
|
27 |
return selectOne(OAuth2ClientDO::getClientId, clientId); |
|
28 |
} |
|
29 |
|
|
30 |
} |