自动化立体仓库 - WMS系统
#
LSH
2023-12-29 63817fb8bd1933714c4a51d552f15b6e4342c976
src/main/resources/mapper/OrderDetlMapper.xml
@@ -45,6 +45,11 @@
        <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" />
        <result column="source_loc_name" property="sourceLocName" />
        <result column="target_loc_name" property="targetLocName" />
    </resultMap>
@@ -68,7 +73,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>
@@ -124,10 +129,21 @@
        and mdt.pakout = 1
        <include refid="pakOutPageCondition"></include>
    </select>
    <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
        set qty = qty + #{qty}
        set work_qty = work_qty + #{workQty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
@@ -143,7 +159,7 @@
    <update id="decrease">
        update man_order_detl
        set work_qty = work_qty - #{qty}
        set work_qty = work_qty - #{workQty}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}