jinlin
2024-01-31 9025b9cf7ec8610003d445a31d93e35e7bd73c2e
modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml
@@ -2,12 +2,11 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zt.life.modules.configItemWarehouse.dao.WarehouseConfigItemDao">
    <select id="getList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem">
        select a.*
        from config_item_warehouse_detail a
        select *
        from config_item_warehouse_detail
        <where>
            a.is_delete = 0
            is_delete = 0
            <if test="warehouseId!=null">
                and warehouse_id = ${warehouseId}
            </if>
@@ -27,9 +26,6 @@
        JOIN project p ON p.id = ${projectId}
        WHERE t.is_delete = 0
        AND i.id = t.circulat_order_id
        <if test="ids!=null and ids!=''">
            AND t.id not in (${ids})
        </if>
        UNION
        SELECT (@row_number := @row_number + 1) AS no,
        p.secret_class,
@@ -41,9 +37,6 @@
        JOIN project p ON p.id = ${projectId}
        WHERE s.is_delete = 0
        AND s.project_id = ${projectId}
        <if test="ids!=null and ids!=''">
            AND s.id not in (${ids})
        </if>
        UNION
        SELECT (@row_number := @row_number + 1) AS no,
        p.secret_class,
@@ -55,9 +48,6 @@
        JOIN project p ON p.id = ${projectId}
        WHERE i.is_delete = 0
        AND i.project_id = ${projectId}
        <if test="ids!=null and ids!=''">
            AND i.id not in (${ids})
        </if>
    </select>
    <select id="selectList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem">
        SET @row_number = 0;
@@ -76,4 +66,10 @@
            and a.library_type=${type}
        </if>
    </select>
    <select id="getBySrc" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem">
        select *
        from config_item_warehouse_detail
        where project_id =${projectId} and is_delete =0 and src_id =${srcId}
        ORDER BY UPDATE_DATE DESC
    </select>
</mapper>