自动化立体仓库 - WMS系统
#1
dubin
4 天以前 aa360de4381100150d34a469ecc087a78cf1720e
src/main/resources/mapper/LocMastMapper.xml
@@ -122,16 +122,22 @@
    <select id="queryLocToOne" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_status = 'O' and row1 in (1,2)
        <if test="locType1 ! = null">
            and loc_type1 = #{locType1}
        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
    </select>
    <select id="queryLocToTwo" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast
        where loc_status = 'O' and row1 in (3,4)
        where loc_sts = 'O' and row1 in (3,4)
        <if test="locType2 == 7">
            and lev1 in(1,2)
        </if>