From da2330bb7951c602ebe72a9f53ff13d0895b3349 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期五, 15 十二月 2023 10:57:55 +0800
Subject: [PATCH] 修改

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

diff --git a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
index 1819532..ddbcb48 100644
--- a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
@@ -47,42 +47,16 @@
         WHERE i.is_delete = 0
           AND i.project_id = ${projectId}
     </select>
-    <select id="changeSelectList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem">
+    <select id="selectList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem">
         SET @row_number = 0;
         SELECT (@row_number := @row_number + 1) AS no,
-        a.item_name,a.item_identify,a.version as retrospect_version,a.secret_class,a.project_id,a.id as change_select_id
+        a.item_name,a.item_identify,a.version as retrospect_version,a.secret_class,a.project_id,a.id as select_id
         from config_item_warehouse_detail a
         WHERE a.is_delete = 0
         and a.project_id = ${projectId}
-        and a.outbound_select_id IS NOT NULL
         <if test="ids!=null and ids!=''">
             AND id not in (${ids})
         </if>
-        and a.id NOT IN (SELECT change_select_id FROM config_item_warehouse_detail
-        WHERE
-        ( SELECT count(*) FROM config_item_warehouse_detail WHERE id IN (SELECT
-        change_select_id
-        FROM
-        config_item_warehouse_detail) ) > 0)
+        and a.id NOT IN (select select_id from config_item_warehouse_detail where select_id is not null)
     </select>
-    <select id="outboundSelectList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem">
-        SET @row_number = 0;
-        SELECT (@row_number := @row_number + 1) AS no,
-        a.item_name,a.item_identify,a.version,a.secret_class,a.project_id,a.id as outbound_select_id
-        from config_item_warehouse_detail a
-        WHERE a.is_delete = 0
-        and a.project_id = ${projectId}
-        and a.change_select_id IS NOT NULL
-        <if test="ids!=null and ids!=''">
-            AND id not in (${ids})
-        </if>
-        and a.id NOT IN (SELECT outbound_select_id FROM config_item_warehouse_detail
-        WHERE
-        ( SELECT count(*) FROM config_item_warehouse_detail WHERE id IN (SELECT
-        outbound_select_id
-        FROM
-        config_item_warehouse_detail) ) > 0)
-    </select>
-
-
 </mapper>

--
Gitblit v1.9.1