自动化立体仓库 - WMS系统
野心家
2022-11-14 2ce4adc0e5b083181c315676f9017a1afb40b9e4
src/main/resources/mapper/OrderDetlMapper.xml
@@ -127,7 +127,7 @@
    <update id="increase">
        update man_order_detl
        set qty = qty + #{qty}
        set work_qty = work_qty + #{qty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
@@ -147,14 +147,7 @@
        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>
    <update id="modifyStatus">
@@ -200,4 +193,12 @@
        </choose>
    </update>
    <update id="increaseWorkQtytest">
        update man_order_detl
        set work_qty = work_qty + #{anfme}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr};
    </update>
</mapper>