| | |
| | | <result column="inv_wh" property="invWh" /> |
| | | <result column="mk" property="mk" /> |
| | | <result column="barcode" property="barcode" /> |
| | | <result column="Pdc_type" property="PdcType" /> |
| | | <result column="ctn_no" property="ctnNo" /> |
| | | |
| | | </resultMap> |
| | |
| | | ) |
| | | and (loc_sts = 'F' or loc_sts = 'D') and crn_no = #{crnNo} |
| | | </select> |
| | | |
| | | <select id="selectLocShuttleMoveUnilateralY" resultMap="BaseResultMap"> |
| | | select * from [dbo].[asr_loc_mast] where row1>1 and row1 < 18 and bay1 = #{bay} and lev1 = #{lev} and loc_sts='F' order by row1 |
| | | </select> |
| | | |
| | | <select id="selectLocShuttleMoveUnilateralN" resultMap="BaseResultMap"> |
| | | select * from [dbo].[asr_loc_mast] where row1>17 and row1 < 31 and bay1 = #{bay} and lev1 = #{lev} and loc_sts='F' order by row1 desc |
| | | </select> |
| | | |
| | | <select id="selectLocByLocStsPakInF1" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in |
| | | <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=","> |
| | | #{locNo} |
| | | </foreach> |
| | | AND loc_sts not in ('O') order by row1 |
| | | </select> |
| | | |
| | | <select id="selectLocByLocStsPakInF2" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in |
| | | <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=","> |
| | | #{locNo} |
| | | </foreach> |
| | | AND loc_sts not in ('O') order by row1 desc |
| | | </select> |
| | | |
| | | <select id="selectLocByLocStsPakInO1" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in |
| | | <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=","> |
| | | #{locNo} |
| | | </foreach> |
| | | AND loc_sts in ('O') order by row1 desc |
| | | </select> |
| | | |
| | | <select id="selectLocByLocStsPakInO2" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE loc_no in |
| | | <foreach collection="locNos" item="locNo" index="index" open="(" close=")" separator=","> |
| | | #{locNo} |
| | | </foreach> |
| | | AND loc_sts in ('O') order by row1 |
| | | </select> |
| | | |
| | | <select id="selectByBarcode" resultMap="BaseResultMap"> |
| | | SELECT top 1 * FROM [dbo].[asr_loc_mast] WHERE barcode = #{zpallet} |
| | | </select> |
| | | |
| | | <select id="queryLocToOne" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast |
| | | 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_sts = 'O' and row1 in (3,4) |
| | | <if test="locType2 == 7"> |
| | | and lev1 in(1,2) |
| | | </if> |
| | | <if test="locType2 == 8"> |
| | | and lev1 in(3,4,5,6) |
| | | </if> |
| | | order by lev1 asc,bay1 asc |
| | | </select> |
| | | </mapper> |