自动化立体仓库 - WMS系统
*
lsh
2025-11-14 edb540e6444a6e809c66393500bb175a8a4eef44
src/main/resources/mapper/LocDetlMapper.xml
@@ -110,6 +110,12 @@
        <if test="specs!=null and specs!='' ">
            and a.specs like '%' + #{specs} + '%'
        </if>
        <if test="model!=null and model!='' ">
            and a.model like '%' + #{model} + '%'
        </if>
        <if test="danger!=null">
            and a.danger = #{danger}
        </if>
    </sql>
    <select id="getStockOutPage" resultMap="BaseResultMap">
@@ -142,12 +148,11 @@
            select
            ROW_NUMBER() over (order by sum(a.anfme) desc) as row
            , a.matnr
            , a.batch
            , sum(a.anfme) as anfme
            from asr_loc_detl a
            where 1=1
            <include refid="stockOutCondition"></include>
            group by a.matnr, a.batch
            group by a.matnr
         ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>