| | |
| | | ) |
| | | and loc_sts = 'D' and crn_no=1 |
| | | </select> |
| | | <select id="queryEmptyLocNoByStaNo" 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' |
| | | <if test="crnNo == 1"> |
| | | and row1 in(1,2) |
| | | </if> |
| | | <if test="crnNo == 2"> |
| | | and row1 in(5,6) |
| | | </if> |
| | | <if test="crnNo == 3"> |
| | | and row1 in(6,7) |
| | | </if> |
| | | ORDER BY lev1 ASC, bay1 ASC |
| | | </select> |
| | | <select id="queryLocByBarCode" 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 row1 = #{row} ORDER BY lev1 ASC, bay1 ASC |
| | | </select> |
| | | </mapper> |