提交 | 用户 | 时间
|
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.template.MailTemplatePageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.mail.MailTemplateDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface MailTemplateMapper extends BaseMapperX<MailTemplateDO> { |
|
12 |
|
|
13 |
default PageResult<MailTemplateDO> selectPage(MailTemplatePageReqVO pageReqVO){ |
|
14 |
return selectPage(pageReqVO , new LambdaQueryWrapperX<MailTemplateDO>() |
|
15 |
.eqIfPresent(MailTemplateDO::getStatus, pageReqVO.getStatus()) |
|
16 |
.likeIfPresent(MailTemplateDO::getCode, pageReqVO.getCode()) |
|
17 |
.likeIfPresent(MailTemplateDO::getName, pageReqVO.getName()) |
|
18 |
.eqIfPresent(MailTemplateDO::getAccountId, pageReqVO.getAccountId()) |
|
19 |
.betweenIfPresent(MailTemplateDO::getCreateTime, pageReqVO.getCreateTime())); |
|
20 |
} |
|
21 |
|
|
22 |
default Long selectCountByAccountId(Long accountId) { |
|
23 |
return selectCount(MailTemplateDO::getAccountId, accountId); |
|
24 |
} |
|
25 |
|
|
26 |
default MailTemplateDO selectByCode(String code) { |
|
27 |
return selectOne(MailTemplateDO::getCode, code); |
|
28 |
} |
|
29 |
|
|
30 |
} |