提交 | 用户 | 时间
|
e41062
|
1 |
package com.iailab.module.data.ind.item.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.data.ind.item.entity.IndItemEntity; |
|
8 |
import com.iailab.module.data.ind.item.vo.IndItemPageReqVO; |
68413a
|
9 |
import com.iailab.module.data.ind.item.vo.IndItemRespVO; |
e41062
|
10 |
import org.apache.ibatis.annotations.Mapper; |
68413a
|
11 |
import org.apache.ibatis.annotations.Param; |
J |
12 |
|
|
13 |
import java.util.List; |
e41062
|
14 |
|
潘 |
15 |
/** |
|
16 |
* @author PanZhibao |
|
17 |
* @Description |
|
18 |
* @createTime 2024年09月11日 |
|
19 |
*/ |
|
20 |
@TenantDS |
|
21 |
@Mapper |
|
22 |
public interface IndItemDao extends BaseMapperX<IndItemEntity> { |
68413a
|
23 |
List<IndItemRespVO> getItemList(@Param("params")IndItemPageReqVO reqVO); |
e41062
|
24 |
|
潘 |
25 |
default PageResult<IndItemEntity> selectPage(IndItemPageReqVO reqVO) { |
|
26 |
return selectPage(reqVO, new LambdaQueryWrapperX<IndItemEntity>() |
|
27 |
.likeIfPresent(IndItemEntity::getItemNo, reqVO.getItemNo()) |
|
28 |
.likeIfPresent(IndItemEntity::getItemName, reqVO.getItemName()) |
2a6f08
|
29 |
.eqIfPresent(IndItemEntity::getItemType, reqVO.getItemType()) |
潘 |
30 |
.eqIfPresent(IndItemEntity::getItemCategory, reqVO.getItemCategory()) |
e41062
|
31 |
.orderByDesc(IndItemEntity::getCreateTime)); |
潘 |
32 |
} |
68413a
|
33 |
|
J |
34 |
|
e41062
|
35 |
} |