chenhj
2026-04-24 b5f260b2364fad1e74a7eb1f5985268056e3a9e7
src/main/resources/mapper/stock/StockUninventoryMapper.xml
@@ -25,7 +25,15 @@
            </if>
            update_time = now()
        </set>
        where product_model_id = #{ew.productModelId} and qualitity >= #{ew.qualitity}
        where
        product_model_id = #{ew.productModelId} and qualitity >= #{ew.qualitity}
        <if test="ew.batchNo == null">
            and batch_no is null
        </if>
        <if test="ew.batchNo != null">
            and batch_no = #{ew.batchNo}
        </if>
    </update>
    <update id="updateAddStockUnInventory">
        update stock_uninventory
@@ -45,6 +53,12 @@
            update_time = now()
        </set>
        where product_model_id = #{ew.productModelId}
        <if test="ew.batchNo == null">
            and batch_no is null
        </if>
        <if test="ew.batchNo != null">
            and batch_no = #{ew.batchNo}
        </if>
    </update>
    <select id="pageStockUninventory" resultType="com.ruoyi.stock.dto.StockUninventoryDto">
        select su.id,