自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-11-03 d6dcba598b79f39aeea515f5121e8ec40830e13b
src/main/resources/mapper/LocDetlMapper.xml
@@ -231,6 +231,7 @@
        (
            select
            no = 1,
            orderBy = 'false',
            b.bay1 as bay,
            sum(anfme) as count
            from asr_loc_detl a
@@ -244,6 +245,7 @@
            union
            select
            no = 2,
            orderBy = 'true',
            b.bay1,
            sum(anfme) as count
            from asr_loc_detl a
@@ -257,6 +259,7 @@
            union
            select
            no = 3,
            orderBy = 'false',
            b.bay1,
            sum(anfme) as count
            from asr_loc_detl a
@@ -270,6 +273,7 @@
            union
            select
            no = 4,
            orderBy = 'true',
            b.bay1,
            sum(anfme) as count
            from asr_loc_detl a
@@ -283,6 +287,7 @@
            union
            select
            no = 5,
            orderBy = 'false',
            b.bay1,
            sum(anfme) as count
            from asr_loc_detl a
@@ -296,6 +301,7 @@
            union
            select
            no = 6,
            orderBy = 'true',
            b.bay1,
            sum(anfme) as count
            from asr_loc_detl a
@@ -365,7 +371,10 @@
        and a.matnr = #{matnr}
        and b.bay1 = #{bay}
        and b.loc_sts = 'F'
        order by b.row1 asc
        order by b.row1
        <if test="orderBy != null and orderBy != '' and orderBy == 'false'">
            desc
        </if>
    </select>
    <select id="queryStockAnfme" resultType="java.lang.Double">