提交 | 用户 | 时间
|
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.log.MailLogPageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.mail.MailLogDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface MailLogMapper extends BaseMapperX<MailLogDO> { |
|
12 |
|
|
13 |
default PageResult<MailLogDO> selectPage(MailLogPageReqVO reqVO) { |
|
14 |
return selectPage(reqVO, new LambdaQueryWrapperX<MailLogDO>() |
|
15 |
.eqIfPresent(MailLogDO::getUserId, reqVO.getUserId()) |
|
16 |
.eqIfPresent(MailLogDO::getUserType, reqVO.getUserType()) |
|
17 |
.likeIfPresent(MailLogDO::getToMail, reqVO.getToMail()) |
|
18 |
.eqIfPresent(MailLogDO::getAccountId, reqVO.getAccountId()) |
|
19 |
.eqIfPresent(MailLogDO::getTemplateId, reqVO.getTemplateId()) |
|
20 |
.eqIfPresent(MailLogDO::getSendStatus, reqVO.getSendStatus()) |
|
21 |
.betweenIfPresent(MailLogDO::getSendTime, reqVO.getSendTime()) |
|
22 |
.orderByDesc(MailLogDO::getId)); |
|
23 |
} |
|
24 |
|
|
25 |
} |