huminmin
2026-06-22 802796c22d7d21a6d572cd4c11844e6865521666
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,
@@ -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">