自动化立体仓库 - WMS系统
野心家
2023-04-24 9240810b9d52625f861b2dbd481759fa53b5ab7a
src/main/resources/mapper/OrderDetlMapper.xml
@@ -138,12 +138,12 @@
    <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}
        <choose>
            <when test="batch != null and batch != ''">
            <when test="batch != null and batch!=''  ">
                and batch = #{batch}
            </when>
            <otherwise>
@@ -154,12 +154,12 @@
    <update id="decrease">
        update man_order_detl
        set qty = qty - #{qty}
        set work_qty = work_qty - #{qty}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}
        <choose>
            <when test="batch != null">
            <when test="batch != null ">
                and batch = #{batch}
            </when>
            <otherwise>