#
Junjie
2024-01-17 bb3941c91f4d400ec13044f5ada027b9bc3c07d3
zy-asrs-common/src/main/resources/mapper/wms/LocMastMapper.xml
@@ -2,4 +2,37 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zy.asrs.common.wms.mapper.LocMastMapper">
    <select id="queryFreeLocMast2" resultType="com.zy.asrs.common.wms.entity.LocMast">
        select *
        from common_loc_mast
        where 1=1
        and loc_sts='O'
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
        <if test="rowBeg != null">
            and row1 >= #{rowBeg}
        </if>
        <if test="rowEnd != null">
            and row1 &lt;= #{rowEnd}
        </if>
        <if test="bayBeg != null">
            and bay1 >= #{bayBeg}
        </if>
        <if test="bayEnd != null">
            and bay1 &lt;= #{bayEnd}
        </if>
        <if test="levBeg != null">
            and lev1 >= #{levBeg}
        </if>
        <if test="levEnd != null">
            and lev1 &lt;= #{levEnd}
        </if>
        <if test="hostId != null">
            and host_id = #{hostId}
        </if>
--         and loc_no not in ('0100101')
        order by loc_sts desc ,lev1 asc,bay1 asc
    </select>
</mapper>