自动化立体仓库 - WMS系统
dubin
2026-01-20 67826a2c51bbc013db409dd1a5e29dd4ba52fd72
src/main/resources/mapper/LocMastMapper.xml
@@ -123,13 +123,7 @@
    <select id="queryLocToOne" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_sts = 'O' and row1 in (1,2)
        <if test="locType2 == 4">
            and lev1 in(1)
        </if>
        <if test="locType2 == 5">
            and lev1 in(2,3)
        </if>
        <if test="locType2 == 6">
            and lev1 in(4,5)
        </if>
        order by lev1 asc,bay1 asc
@@ -146,4 +140,28 @@
        </if>
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryLocToSpecal" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_sts = 'O' and row1 in (1,2)
        <if test="locType1 == 1">
            and lev1 in(1)
        </if>
        <if test="locType1 == 2">
            and lev1 in(2,3)
        </if>
        order by lev1 asc,bay1 asc
    </select>
    <select id="queryLocToOneEmpty" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_sts = 'O' and row1 in (1,2)
        <if test="locType2 == 5">
            and lev1 in(4,5)
        </if>
        <if test="locType2 == 6">
            and lev1 in(1,2,3)
        </if>
        order by lev1 asc,bay1 asc
    </select>
</mapper>