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