自动化立体仓库 - WMS系统
#
18516761980
2022-08-18 183849b7956fdc8026509d59114c66106d144990
src/main/resources/mapper/LocMastMapper.xml
@@ -51,6 +51,29 @@
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryFreeLocMast1" resultMap="BaseResultMap">
        select top 1 *
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        order by loc_type2 asc,lev1 asc,bay1 asc
    </select>
    <select id="queryFreeLocMast2" resultMap="BaseResultMap">
        select top 1 *
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        and bay1=#{bay}
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryShallowLocFMast" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where 1=1