huminmin
2026-06-22 bdaeaa452c0a17c045467578502867e6fa245dd4
src/main/resources/mapper/stock/StockUninventoryMapper.xml
@@ -30,7 +30,6 @@
        from stock_uninventory su
        left join product_model pm on su.product_model_id = pm.id
        left join product p on pm.product_id = p.id
        left join manufacturer m on su.manufacturer_id = m.id
    </sql>
    <sql id="WastePageColumns">
@@ -48,7 +47,6 @@
        pm.model,
        pm.unit,
        p.product_name,
        m.name as manufacturer_name,
        su.source
    </sql>
@@ -164,7 +162,6 @@
        pm.model,
        pm.unit,
        p.product_name,
        m.name as manufacturer_name,
        su.source
        <include refid="BaseWasteFromClause" />
        <where>
@@ -191,8 +188,7 @@
        su.*,
        pm.model,
        pm.unit,
        p.product_name,
        m.name as manufacturer_name
        p.product_name
        <include refid="BaseWasteFromClause" />
        <where>
            <if test="ew.type != null and ew.type != ''">
@@ -210,7 +206,6 @@
        pm.model,
        pm.unit,
        p.product_name,
        m.name as manufacturer_name,
        su.source,
        su.type,
        GROUP_CONCAT(DISTINCT su.batch_no ORDER BY su.batch_no SEPARATOR ',') as batch_no,
@@ -235,7 +230,7 @@
                and p.id in (select id from product_tree)
            </if>
        </where>
        group by su.product_model_id, su.type, pm.model, pm.unit, p.id, p.product_name, m.name, su.source
        group by su.product_model_id
        order by max(su.update_time) desc, su.product_model_id desc
    </select>
@@ -244,7 +239,6 @@
        su.id,
        p.product_name,
        pm.model,
        m.name as manufacturer_name,
        su.source,
        pm.unit,
        su.batch_no,
@@ -257,7 +251,6 @@
        from stock_uninventory su
        left join product_model pm on su.product_model_id = pm.id
        left join product p on pm.product_id = p.id
        left join manufacturer m on su.manufacturer_id = m.id
        <where>
            and su.type = 'waste'
            <if test="ew.productModelId != null and ew.productModelId > 0">