| | |
| | | List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>() |
| | | .eq("wrk_sts", 201) |
| | | .eq("loc_no","") |
| | | .or().eq("io_type",109) |
| | | .eq("io_type",109) |
| | | .or().eq("io_type",112)); |
| | | if (agvWrkMastList.isEmpty()) { |
| | | return; |
| | |
| | | throw new CoolException("当前"+agvLocMast.getBarcode()+"货架码已在工作档中"); |
| | | } |
| | | //检索空闲接驳位,选择合适的接驳位 |
| | | AgvBasDevp devpNo = agvCommonService.getDevpNoisAuto(3, agvLocMast.getFloor(),"Y"); |
| | | AgvBasDevp devpNo = agvCommonService.getDevpNo(3, agvLocMast.getFloor()); |
| | | //生成工作档 |
| | | AgvWrkMast mast = new AgvWrkMast(); |
| | | //工作状态 |
| | |
| | | } |
| | | public ReturnT<String> autoEmptyBack3(AgvWrkMast agvWrkMast) { |
| | | Date now = new Date(); |
| | | AgvBasDevp agvBasDevp = agvBasDevpService.selectByDevNo(agvWrkMast.getSourceLocNo()); |
| | | if (agvBasDevp.getAutoing() == "N") { |
| | | throw new CoolException("当前站点为手动"); |
| | | } |
| | | //检索空闲接驳位,选择合适的接驳位 |
| | | AgvLocMast locMast = agvCommonService.getLocNo(3, 1); |
| | | //目标站点 |
| | |
| | | * 检索库位号 |
| | | * @return locNo 检索到的库位号 |
| | | */ |
| | | public AgvBasDevp getDevpNoisAuto(int type, int floor, String auto) { |
| | | public AgvBasDevp getDevpNo(int type, int floor, String auto) { |
| | | // 目标库位 |
| | | AgvBasDevp basDevp = null; |
| | | |