<?xml version="1.0" encoding="UTF-8"?>
|
<!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 <= #{rowEnd}
|
</if>
|
<if test="bayBeg != null">
|
and bay1 >= #{bayBeg}
|
</if>
|
<if test="bayEnd != null">
|
and bay1 <= #{bayEnd}
|
</if>
|
<if test="levBeg != null">
|
and lev1 >= #{levBeg}
|
</if>
|
<if test="levEnd != null">
|
and lev1 <= #{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>
|