自动化立体仓库 - WMS系统
#
18516761980
2022-02-15 a6367524f0ff7a99052adec769e078468e058d2e
src/main/resources/mapper/LocDetlMapper.xml
@@ -90,7 +90,7 @@
        where loc_no=#{locNo}
    </select>
    <select id="getStockStatis" resultMap="BaseResultMap">
        select a.mat_name,a.mat_no,sum(a.qty) qty  from
        select a.mat_name,a.mat_no,a.supplier,sum(a.qty) qty  from
        (
        select
        ROW_NUMBER() over (order by c.appe_time,c.mat_no,c.loc_no) as row,
@@ -98,7 +98,7 @@
        from asr_loc_detl c
        ) a where a.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
         <include refid="stockOutCondition"></include>
        group by a.mat_no,a.mat_name
        group by a.mat_no,a.mat_name,a.supplier
    </select>
    <select id="getStockStatisCount" resultType="integer">
        select
@@ -108,11 +108,11 @@
    <select id="getStockStatisExcel" resultMap="BaseResultMap">
     select
        ROW_NUMBER() over (order by a.mat_no, sum(a.qty) desc) as row
        , a.mat_no, a.mat_name
        , a.mat_no, a.mat_name,a.supplier
        , sum(a.qty) as qty
        from asr_loc_detl a
        where 1=1
        group by a.mat_no,a.mat_name
        group by a.mat_no,a.mat_name,a.supplier
    </select>
<!--    <select id="getStockSum" resultMap="BaseResultMap">-->