自动化立体仓库 - WMS系统
zjj
2023-06-14 f34da12c558d57d156529e23c04e2388e60b94e5
src/main/resources/mapper/OrderDetlMapper.xml
@@ -45,6 +45,9 @@
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="owner" property="owner" />
        <result column="payment" property="payment" />
        <result column="uuid" property="uuid" />
    </resultMap>
@@ -68,7 +71,7 @@
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}
        <if test="batch!=null">
        <if test="batch!=null and batch!=''">
            and batch = #{batch}
        </if>
    </select>
@@ -138,7 +141,7 @@
    <update id="increase">
        update man_order_detl
        set qty = qty + #{qty}
        set work_qty = work_qty + #{workQty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
@@ -154,7 +157,7 @@
    <update id="decrease">
        update man_order_detl
        set qty = qty - #{qty}
        set work_qty = work_qty - #{workQty}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}