dengzedong
2024-09-13 19ef4ca4f7252c34fe2e2a03b8868fc997ddd86f
提交 | 用户 | 时间
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;
9 import org.apache.ibatis.annotations.Mapper;
10
11 /**
12  * @author PanZhibao
13  * @Description
14  * @createTime 2024年09月11日
15  */
16 @TenantDS
17 @Mapper
18 public interface IndItemDao extends BaseMapperX<IndItemEntity> {
19
20     default PageResult<IndItemEntity> selectPage(IndItemPageReqVO reqVO) {
21         return selectPage(reqVO, new LambdaQueryWrapperX<IndItemEntity>()
22                 .likeIfPresent(IndItemEntity::getItemNo, reqVO.getItemNo())
23                 .likeIfPresent(IndItemEntity::getItemName, reqVO.getItemName())
2a6f08 24                 .eqIfPresent(IndItemEntity::getItemType, reqVO.getItemType())
25                 .eqIfPresent(IndItemEntity::getItemCategory, reqVO.getItemCategory())
e41062 26                 .orderByDesc(IndItemEntity::getCreateTime));
27     }
28 }