自动化立体仓库 - WMS系统
#
LSH
2023-05-25 4812eefba81853615ec8a06a11d79c6a9d17d877
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>
@@ -127,6 +130,14 @@
    <select id="checkAllDetlFinish" resultType="java.lang.Integer">
        SELECT count(*) From man_order_detl WHERE qty &lt; anfme and order_no = #{orderNo}
    </select>
    <select id="sameOrderComb" resultType="java.lang.Integer">
        SELECT SUM(anfme) FROM cust_wait_pakin WHERE  1=1
        <if test="orderNo!=null and orderNo!='' ">
            and order_no like '%' + #{orderNo} + '%'
        </if>
        and matnr = #{matnr}
        and batch = #{batch}
    </select>
    <update id="increase">
        update man_order_detl
@@ -146,7 +157,7 @@
    <update id="decrease">
        update man_order_detl
        set work_qty = work_qty - #{qty}
        set qty = qty - #{qty}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}