eight
2024-11-21 b8ed4828e4d798111d36fc58ebb718ebe62359b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cn.lihu.jh.module.system.dal.mysql.mail;
 
import cn.lihu.jh.framework.common.pojo.PageResult;
import cn.lihu.jh.framework.mybatis.core.mapper.BaseMapperX;
import cn.lihu.jh.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.lihu.jh.framework.mybatis.core.query.QueryWrapperX;
import cn.lihu.jh.module.system.controller.admin.mail.vo.account.MailAccountPageReqVO;
import cn.lihu.jh.module.system.dal.dataobject.mail.MailAccountDO;
import org.apache.ibatis.annotations.Mapper;
 
@Mapper
public interface MailAccountMapper extends BaseMapperX<MailAccountDO> {
 
    default PageResult<MailAccountDO> selectPage(MailAccountPageReqVO pageReqVO) {
        return selectPage(pageReqVO, new LambdaQueryWrapperX<MailAccountDO>()
                .likeIfPresent(MailAccountDO::getMail, pageReqVO.getMail())
                .likeIfPresent(MailAccountDO::getUsername , pageReqVO.getUsername()));
    }
 
}