自动化立体仓库 - WMS系统
pang.jiabao
2024-12-02 57936e11434f6614f818a0a0a495918dc1af6dd6
src/main/resources/mapper/OrderDetlMapper.xml
@@ -199,5 +199,20 @@
            </otherwise>
        </choose>
    </update>
    <update id="increaseWorkQtyByOrderNo">
        update man_order_detl
        set work_qty = work_qty + #{qty}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
</mapper>