提交 | 用户 | 时间
|
8b3ee3
|
1 |
package com.iailab.module.model.mpk.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.framework.tenant.core.db.dynamic.TenantDS; |
|
7 |
import com.iailab.module.model.mpk.entity.IconEntity; |
|
8 |
import com.iailab.module.model.mpk.vo.IconPageReqVO; |
|
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
|
|
11 |
/** |
|
12 |
* @author PanZhibao |
|
13 |
* @Description |
|
14 |
* @createTime 2024年09月22日 |
|
15 |
*/ |
|
16 |
@TenantDS |
|
17 |
@Mapper |
|
18 |
public interface IconDao extends BaseMapperX<IconEntity> { |
|
19 |
|
|
20 |
default PageResult<IconEntity> selectPage(IconPageReqVO reqVO) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<IconEntity>() |
|
22 |
.likeIfPresent(IconEntity::getIconName, reqVO.getIconName()) |
|
23 |
.orderByDesc(IconEntity::getSort)); |
|
24 |
} |
|
25 |
} |