自动化立体仓库 - WMS系统
zhang
2025-09-24 21fdb6d630bd74e262e0c5d40f9478cc844eb556
src/main/resources/mapper/asrs/OrderDetlMapper.xml
@@ -200,4 +200,23 @@
        </choose>
    </update>
    <update id="increaseWorkQty2">
        update man_order_detl
        set work_qty = work_qty + #{workQty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
        <if test="color!=null and color!='' ">
            and color = #{color}
        </if>
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
</mapper>