自动化立体仓库 - WMS系统
1
zhang
2025-10-22 5de76c8f2409c0d1a759c4ee33967f2fbd8295c8
src/main/resources/mapper/asrs/OrderDetlMapper.xml
@@ -112,6 +112,16 @@
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
    <select id="reportERPOrderDetl" resultMap="BaseResultMap">
        select d.* from man_order_detl d
        LEFT JOIN man_order o on o.order_no = d.order_no
        where 1=1
          and o.doc_type = 81
          and d.work_qty = d.qty
          and d.qty = d.anfme
          and d.qty > d.units
    </select>
    <select id="getPakoutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
        select
        count(1)
@@ -200,4 +210,23 @@
        </choose>
    </update>
    <update id="increaseWorkQty2">
        update man_order_detl
        set work_qty = work_qty + #{workQty}
        <if test="color!=null and color!='' ">
            , color = #{color}
        </if>
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
</mapper>