package com.iailab.module.system.dal.mysql.mail; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; import com.iailab.module.system.controller.admin.mail.vo.account.MailAccountPageReqVO; import com.iailab.module.system.dal.dataobject.mail.MailAccountDO; import org.apache.ibatis.annotations.Mapper; @Mapper public interface MailAccountMapper extends BaseMapperX { default PageResult selectPage(MailAccountPageReqVO pageReqVO) { return selectPage(pageReqVO, new LambdaQueryWrapperX() .likeIfPresent(MailAccountDO::getMail, pageReqVO.getMail()) .likeIfPresent(MailAccountDO::getUsername , pageReqVO.getUsername())); } }