自动化立体仓库 - WMS系统
pang.jiabao
2025-09-09 ea5663c37742844e6fe32c7e521a9ca9b5e711f9
src/main/resources/mapper/LocDetlMapper.xml
@@ -401,11 +401,15 @@
            , a.maktx
            , a.model
            , a.volume
            ,manu_date manuDate
            ,batch
            , sum(a.anfme) as anfme
            ,sum(a.weight) weight
            ,sum(a.man_length) manLength
            from asr_loc_detl a
            where 1=1
            <include refid="stockOutCondition"></include>
            group by a.matnr,a.maktx,a.model,a.volume
            group by a.matnr,a.maktx,a.model,a.volume,manu_date,batch
         ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
@@ -417,10 +421,12 @@
        , a.maktx
        , a.model
        , a.volume
        ,manu_date manuDate
        ,batch
        from asr_loc_detl a
        where 1=1
        <include refid="stockOutCondition"></include>
        group by a.matnr, a.maktx, a.model,a.volume
        group by a.matnr,a.maktx,a.model,a.volume,manu_date,batch
     ) b
    </select>
@@ -428,10 +434,17 @@
        select
        ROW_NUMBER() over (order by sum(a.anfme) desc) as row
        , a.matnr
        , a.maktx
        , a.model
        , a.volume
        ,manu_date manuDate
        ,batch
        , sum(a.anfme) as anfme
        ,sum(a.weight) weight
        ,sum(a.man_length) manLength
        from asr_loc_detl a
        where 1=1
        group by a.matnr
        group by a.matnr,a.maktx,a.model,a.volume,manu_date,batch
    </select>
    <select id="selectPakoutByRule" resultMap="BaseResultMap">