From e2255cad8935c961fe161eca60dc88b0930395ad Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期一, 11 十二月 2023 15:25:00 +0800
Subject: [PATCH] 项目表

---
 modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
index 95fb716..92dfa12 100644
--- a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
@@ -48,11 +48,9 @@
         from config_item_warehouse_detail a
         WHERE a.is_delete = 0
           and a.project_id = ${projectId}
-        <if test="warehouse_id!=null">
-            AND id not in  (select id from config_item_warehouse_detail where is_delete = 0 and warehouse_id = ${warehouseId})
-        </if>
-        <if test="selectIds!=null">
-            AND id not in  (${selectIds})
+          and a.id NOT IN (SELECT select_id FROM config_item_warehouse_detail)
+        <if test="ids!=null and ids!=''">
+            AND id not in  (${ids})
         </if>
     </select>
 

--
Gitblit v1.9.1