From 0dff85a422669f41ef6d8e88fa24bf26ca164cbd Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 12 十二月 2023 10:38:03 +0800
Subject: [PATCH] 修改

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

diff --git a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
index 7cfbb64..92dfa12 100644
--- a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
@@ -48,7 +48,8 @@
         from config_item_warehouse_detail a
         WHERE a.is_delete = 0
           and a.project_id = ${projectId}
-        <if test="ids!=null">
+          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