提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.dal.mysql.notify; |
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.notify.vo.template.NotifyTemplatePageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.notify.NotifyTemplateDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface NotifyTemplateMapper extends BaseMapperX<NotifyTemplateDO> { |
|
12 |
|
|
13 |
default NotifyTemplateDO selectByCode(String code) { |
|
14 |
return selectOne(NotifyTemplateDO::getCode, code); |
|
15 |
} |
|
16 |
|
|
17 |
default PageResult<NotifyTemplateDO> selectPage(NotifyTemplatePageReqVO reqVO) { |
|
18 |
return selectPage(reqVO, new LambdaQueryWrapperX<NotifyTemplateDO>() |
|
19 |
.likeIfPresent(NotifyTemplateDO::getCode, reqVO.getCode()) |
|
20 |
.likeIfPresent(NotifyTemplateDO::getName, reqVO.getName()) |
|
21 |
.eqIfPresent(NotifyTemplateDO::getStatus, reqVO.getStatus()) |
|
22 |
.betweenIfPresent(NotifyTemplateDO::getCreateTime, reqVO.getCreateTime()) |
|
23 |
.orderByDesc(NotifyTemplateDO::getId)); |
|
24 |
} |
|
25 |
|
|
26 |
} |