自动化立体仓库 - WMS系统
#
18516761980
2021-09-02 6fd276e85c43c6445840caa6e2891b7d3230490a
src/main/resources/mapper/WaitMatinMapper.xml
@@ -52,7 +52,7 @@
        select * from
        (
            select *,
            ROW_NUMBER() over (order by appe_time) as row
            ROW_NUMBER() over (order by appe_time desc) as row
            from (
                select distinct bill_no, bill_type, appe_time
                from ints_wait_matin
@@ -66,7 +66,7 @@
        select count(1) from
        (
            select *,
            ROW_NUMBER() over (order by appe_time) as row
            ROW_NUMBER() over (order by appe_time desc) as row
            from (
                select distinct bill_no, bill_type, appe_time
                from ints_wait_matin
@@ -75,5 +75,11 @@
            ) r
        ) t
    </select>
    <select id="selectWaitMatinBySts" resultMap="BaseResultMap">
       select * from ints_wait_matin
        where io_status=2
      or (in_qty=qty)
        order by modi_time,mat_no asc
    </select>
</mapper>