自动化立体仓库 - WMS系统
LSH
2023-09-27 c94a87065a12006c1b3251418a13a459b23aa7e4
src/main/resources/mapper/LocDetlMapper.xml
@@ -192,6 +192,23 @@
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
    <select id="getStockStatisDate" resultType="com.zy.asrs.entity.LocDetl">
        select * from
        (
        select
        ROW_NUMBER() over (order by a.anfme,a.batch desc) as row
        , a.matnr
        , a.loc_no as locNo
        , a.batch
        , a.anfme
        from asr_loc_detl a
        where 1=1
        and batch!='' and batch is not null
        <include refid="stockOutCondition"></include>
        group by a.matnr,a.batch,a.anfme, a.loc_no
        ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
    <select id="getStockStatisOut" resultType="com.zy.asrs.entity.LocDetl">
        select * from
        (
@@ -223,6 +240,18 @@
     ) b
    </select>
    <select id="getStockStatisDateCount" parameterType="java.util.Map" resultType="java.lang.Integer">
        select count(1) as count from
        (
        select
        a.matnr
        from asr_loc_detl a
        where 1=1
        <include refid="stockOutCondition"></include>
        group by a.matnr
        ) b
    </select>
    <select id="getStockStatisOutCount" parameterType="java.util.Map" resultType="java.lang.Integer">
        select count(1) as count from
        (