自动化立体仓库 - WMS系统
pang.jiabao
2025-04-27 203e2664c13883f8bb64f638cb1794c0b4480ec2
src/main/resources/mapper/LocMastMapper.xml
@@ -50,6 +50,10 @@
        order by loc_sts desc ,lev1 asc,bay1 asc
    </select>
    <select id="selectLocByLev" resultMap="BaseResultMap">
        SELECT * FROM asr_loc_mast WHERE lev1 = #{lev}
    </select>
    <select id="queryShallowLocFMast" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where 1=1
@@ -199,5 +203,21 @@
            #{item}
        </foreach>
    </select>
    <select id="queryLocMasterByLocStsAndRow" resultMap="BaseResultMap">
        select
        top 1 *
        from
        asr_loc_mast alm
        where
        alm.loc_sts = #{locType}
        <if test="rowList != null and !rowList.isEmpty()">
            and alm.row1 in
            <foreach collection="rowList" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        order by
        lev1,bay1,row1
    </select>
</mapper>