提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.dal.mysql.tenant; |
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.tenant.vo.packages.TenantPackagePageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.tenant.TenantPackageDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
import java.util.List; |
|
11 |
|
|
12 |
/** |
|
13 |
* 租户套餐 Mapper |
|
14 |
* |
|
15 |
* @author iailab |
|
16 |
*/ |
|
17 |
@Mapper |
|
18 |
public interface TenantPackageMapper extends BaseMapperX<TenantPackageDO> { |
|
19 |
|
|
20 |
default PageResult<TenantPackageDO> selectPage(TenantPackagePageReqVO reqVO) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<TenantPackageDO>() |
|
22 |
.likeIfPresent(TenantPackageDO::getName, reqVO.getName()) |
|
23 |
.eqIfPresent(TenantPackageDO::getStatus, reqVO.getStatus()) |
|
24 |
.likeIfPresent(TenantPackageDO::getRemark, reqVO.getRemark()) |
|
25 |
.betweenIfPresent(TenantPackageDO::getCreateTime, reqVO.getCreateTime()) |
|
26 |
.orderByDesc(TenantPackageDO::getId)); |
|
27 |
} |
|
28 |
|
|
29 |
default List<TenantPackageDO> selectListByStatus(Integer status) { |
|
30 |
return selectList(TenantPackageDO::getStatus, status); |
|
31 |
} |
d66edb
|
32 |
|
H |
33 |
|
|
34 |
default TenantPackageDO selectByName(String name) { |
|
35 |
return selectOne(TenantPackageDO::getName, name); |
|
36 |
} |
e7c126
|
37 |
} |