自动化立体仓库 - WMS系统
18516761980
2022-11-30 f0c28c1962d5635db98c79fa9f05a55d43894d11
src/main/resources/mapper/OrderDetlMapper.xml
@@ -127,7 +127,7 @@
    <update id="increase">
        update man_order_detl
        set work_qty = work_qty + #{qty}
        set qty = qty + #{qty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
@@ -147,7 +147,14 @@
        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">
@@ -191,14 +198,6 @@
                and (batch IS NULL OR batch = '')
            </otherwise>
        </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>