| | |
| | | SELECT TOP 1 loc_no AS locNo,crn_no AS crnNo FROM asr_loc_mast |
| | | where loc_sts = 'O' |
| | | <if test="crnNo == 1"> |
| | | and row1 in(1,2) |
| | | and row1 in(1,2,3) |
| | | </if> |
| | | <if test="crnNo == 2"> |
| | | and row1 in(5,6) |
| | |
| | | SELECT TOP 1 loc_no AS locNo,crn_no AS crnNo FROM asr_loc_mast |
| | | where loc_sts = 'O' and row1 = #{row} ORDER BY lev1 ASC, bay1 ASC |
| | | </select> |
| | | <select id="queryLocByBarCodeNew" resultType="com.zy.asrs.entity.LocMast"> |
| | | SELECT TOP 1 loc_no AS locNo,crn_no AS crnNo FROM asr_loc_mast |
| | | where loc_sts = 'O' and bay1 not in(1,39) |
| | | <if test="devpNo == 104"> |
| | | and row1 in(1,2,3) |
| | | </if> |
| | | <if test="devpNo == 204"> |
| | | and row1 in(4,5) |
| | | </if> |
| | | <if test="devpNo == 304"> |
| | | and row1 in(6,7) |
| | | </if> |
| | | <if test="flag == 1"> |
| | | and lev1 in(1,2,3,4,5,6) |
| | | </if> |
| | | <if test="flag == 2"> |
| | | and lev1 in(7,8,9,10,11) |
| | | </if> |
| | | ORDER BY lev1 ASC, bay1 ASC |
| | | </select> |
| | | </mapper> |