自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-11-03 32113f6676c04509099f1d6e1efc1f8fe96bc44e
#
1个文件已修改
26 ■■■■ 已修改文件
src/main/resources/mapper/LocDetlMapper.xml 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml
@@ -207,14 +207,28 @@
            where 1=1
            and b.loc_sts = 'F'
            and a.matnr = #{matnr}
            and b.row1 >= 31
            and b.row1 <= 32
            group by b.bay1
            union
            select
            no = 2,
            orderBy = 'true',
            b.bay1 as bay,
            sum(anfme) as count
            from asr_loc_detl a
            left join asr_loc_mast b on a.loc_no = b.loc_no
            where 1=1
            and b.loc_sts = 'F'
            and a.matnr = #{matnr}
            and b.row1 >= 2
            and b.row1 <= 17
            group by b.bay1
            union
            select
            no = 2,
            no = 3,
            orderBy = 'false',
            b.bay1,
            b.bay1 as bay,
            sum(anfme) as count
            from asr_loc_detl a
            left join asr_loc_mast b on a.loc_no = b.loc_no
@@ -225,7 +239,7 @@
            and b.row1 <= 30
            group by b.bay1
        ) a
        order by count desc
        order by no, count desc
    </select>
    <select id="queryStock" resultMap="BaseResultMap">
@@ -235,10 +249,14 @@
        left join asr_loc_mast b on a.loc_no = b.loc_no
        where 1=1
        <if test="no!=null and no == 1">
            and b.row1 >= 31
            and b.row1 &lt;= 32
        </if>
        <if test="no!=null and no == 2">
            and b.row1 >= 2
            and b.row1 &lt;= 17
        </if>
        <if test="no!=null and no == 2">
        <if test="no!=null and no == 3">
            and b.row1 >= 18
            and b.row1 &lt;= 30
        </if>