| | |
| | | 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 |
| | |
| | | #{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> |