| | |
| | | |
| | | WrkMast selectWorkingPakin(@Param("sourceStaNo")Integer sourceStaNo); |
| | | WrkMast selectWorkingPakout(@Param("sourceStaNo")Integer sourceStaNo); |
| | | |
| | | |
| | | WrkMast selectShallowLoc(@Param("row")Integer row,@Param("bay")Integer bay,@Param("lev")Integer lev); |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | // 入库深库位是否有非F、D库位进行校验 |
| | | if (wrkMastMapper.selectShallowLoc(Integer.parseInt(wrkMast.getLocNo().substring(0, 2)),Integer.parseInt(wrkMast.getLocNo().substring(2, 5)),Integer.parseInt(wrkMast.getLocNo().substring(5, 7)))!=null){ |
| | | continue; |
| | | } |
| | | |
| | | //加强判断,只要存在移库任务,说明出库任务未完全结束,不执行入库任务 |
| | | WrkMast one = wrkMastMapper.selectLocMoveData(slave.getId()); |
| | | if(!Cools.isEmpty(one)){ |
| | |
| | | order by io_time,wrk_no |
| | | </select> |
| | | |
| | | <select id="selectShallowLoc" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from dbo.asr_loc_mast |
| | | where 1=1 |
| | | and loc_sts!='F' and loc_sts!='D' |
| | | and bay1 = #{bay} |
| | | and lev1 = #{lev} |
| | | <if test="row <= 3"> |
| | | and row1 < #{row} |
| | | </if> |
| | | <if test="row > 3 and row <= 7"> |
| | | and row1 > #{row} |
| | | and row1 <= 7 |
| | | </if> |
| | | <if test="row > 7 and row <= 11"> |
| | | and row1 > 7 |
| | | and row1 < #{row} |
| | | </if> |
| | | <if test="row > 11 and row <= 14"> |
| | | and row1 > #{row} |
| | | and row1 <= 14 |
| | | </if> |
| | | <if test="row > 14 and row <= 18"> |
| | | and row1 > 14 |
| | | and row1 < #{row} |
| | | </if> |
| | | <if test="row > 18 and row <= 21"> |
| | | and row1 > #{row} |
| | | and row1 <= 21 |
| | | </if> |
| | | order by io_time,wrk_no |
| | | </select> |
| | | |
| | | </mapper> |