提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.dal.mysql.oauth2; |
H |
2 |
|
|
3 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
4 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
5 |
import com.iailab.module.system.dal.dataobject.oauth2.OAuth2ApproveDO; |
|
6 |
import org.apache.ibatis.annotations.Mapper; |
|
7 |
|
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface OAuth2ApproveMapper extends BaseMapperX<OAuth2ApproveDO> { |
|
12 |
|
|
13 |
default int update(OAuth2ApproveDO updateObj) { |
|
14 |
return update(updateObj, new LambdaQueryWrapperX<OAuth2ApproveDO>() |
|
15 |
.eq(OAuth2ApproveDO::getUserId, updateObj.getUserId()) |
|
16 |
.eq(OAuth2ApproveDO::getUserType, updateObj.getUserType()) |
|
17 |
.eq(OAuth2ApproveDO::getClientId, updateObj.getClientId()) |
|
18 |
.eq(OAuth2ApproveDO::getScope, updateObj.getScope())); |
|
19 |
} |
|
20 |
|
|
21 |
default List<OAuth2ApproveDO> selectListByUserIdAndUserTypeAndClientId(Long userId, Integer userType, String clientId) { |
|
22 |
return selectList(new LambdaQueryWrapperX<OAuth2ApproveDO>() |
|
23 |
.eq(OAuth2ApproveDO::getUserId, userId) |
|
24 |
.eq(OAuth2ApproveDO::getUserType, userType) |
|
25 |
.eq(OAuth2ApproveDO::getClientId, clientId)); |
|
26 |
} |
|
27 |
|
|
28 |
} |