From bbe7acfbe5a4c08d6edc91eaf81dcecf9d630e18 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期日, 15 十二月 2024 15:10:50 +0800
Subject: [PATCH] collectQuality

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/dao/IndItemDao.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/dao/IndItemDao.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/dao/IndItemDao.java
index 3cb5a78..167d2df 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/dao/IndItemDao.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/item/dao/IndItemDao.java
@@ -6,7 +6,11 @@
 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
 import com.iailab.module.data.ind.item.entity.IndItemEntity;
 import com.iailab.module.data.ind.item.vo.IndItemPageReqVO;
+import com.iailab.module.data.ind.item.vo.IndItemRespVO;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
 
 /**
  * @author PanZhibao
@@ -16,13 +20,16 @@
 @TenantDS
 @Mapper
 public interface IndItemDao extends BaseMapperX<IndItemEntity> {
+    List<IndItemRespVO> getItemList(@Param("params")IndItemPageReqVO reqVO);
 
     default PageResult<IndItemEntity> selectPage(IndItemPageReqVO reqVO) {
         return selectPage(reqVO, new LambdaQueryWrapperX<IndItemEntity>()
                 .likeIfPresent(IndItemEntity::getItemNo, reqVO.getItemNo())
                 .likeIfPresent(IndItemEntity::getItemName, reqVO.getItemName())
-                .eq(IndItemEntity::getItemType, reqVO.getItemType())
-                .eq(IndItemEntity::getItemCategory, reqVO.getItemCategory())
+                .eqIfPresent(IndItemEntity::getItemType, reqVO.getItemType())
+                .eqIfPresent(IndItemEntity::getItemCategory, reqVO.getItemCategory())
                 .orderByDesc(IndItemEntity::getCreateTime));
     }
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.3