提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.dal.mysql.mail; |
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.mail.vo.account.MailAccountPageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.mail.MailAccountDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface MailAccountMapper extends BaseMapperX<MailAccountDO> { |
|
12 |
|
|
13 |
default PageResult<MailAccountDO> selectPage(MailAccountPageReqVO pageReqVO) { |
|
14 |
return selectPage(pageReqVO, new LambdaQueryWrapperX<MailAccountDO>() |
|
15 |
.likeIfPresent(MailAccountDO::getMail, pageReqVO.getMail()) |
|
16 |
.likeIfPresent(MailAccountDO::getUsername , pageReqVO.getUsername())); |
|
17 |
} |
|
18 |
|
|
19 |
} |