提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.mcs.pre.dao; |
潘 |
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.model.mcs.pre.entity.DmModuleEntity; |
|
7 |
import com.iailab.module.model.mcs.pre.vo.DmModulePageReqVO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
58c749
|
9 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
7fd198
|
10 |
|
9f049d
|
11 |
import java.util.List; |
J |
12 |
|
7fd198
|
13 |
/** |
潘 |
14 |
* @author PanZhibao |
|
15 |
* @date 2021年04月23日 8:30 |
|
16 |
*/ |
58c749
|
17 |
@TenantDS |
7fd198
|
18 |
@Mapper |
潘 |
19 |
public interface DmModuleDao extends BaseMapperX<DmModuleEntity> { |
|
20 |
|
9f049d
|
21 |
List<DmModuleEntity> getModuleByItemId(String itemId); |
J |
22 |
|
7fd198
|
23 |
default PageResult<DmModuleEntity> selectPage(DmModulePageReqVO reqVO) { |
潘 |
24 |
return selectPage(reqVO, new LambdaQueryWrapperX<DmModuleEntity>() |
|
25 |
.likeIfPresent(DmModuleEntity::getModulename, reqVO.getModulename()) |
|
26 |
.orderByDesc(DmModuleEntity::getCreateTime)); |
|
27 |
} |
|
28 |
} |