自动化立体仓库 - WMS系统
#
LSH
2023-02-11 e6fc4345bb82c01a190c16093a175b87573525b7
src/main/resources/mapper/LocMastMapper.xml
@@ -70,13 +70,30 @@
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        and bay1=#{bay}
        <if test="locType2 != null and locType != 0">
            and loc_type2 = #{locType2}
        </if>
        <if test="locType2 != null and locType == 0">
            and loc_type2 != null
            and loc_type2 != #{locType2}
        </if>
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryFreeLocMastCount" resultMap="BaseResultMap">
        select count(1)
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        and loc_type2 = #{locType2}
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
    </select>
    <select id="queryShallowLocFMast" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where 1=1