jinlin
2023-12-18 48009ac677243ce3ce974feb173c85a752623874
modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
@@ -47,7 +47,7 @@
        WHERE i.is_delete = 0
          AND i.project_id = ${projectId}
    </select>
    <select id="warehouseList" 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 select_id
@@ -57,12 +57,6 @@
        <if test="ids!=null and ids!=''">
            AND id not in (${ids})
        </if>
        and a.id NOT IN (SELECT '${type}' FROM config_item_warehouse_detail
        WHERE
        ( SELECT count(*) FROM config_item_warehouse_detail WHERE id IN (SELECT
        '${type}'
        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>
</mapper>