| | |
| | | //货架编码 |
| | | mast.setBarcode(agvLocMast.getBarcode()); |
| | | //货架类型 |
| | | mast.setWhsType(30); |
| | | mast.setWhsType(Integer.parseInt(agvLocMast.getBarcode().substring(0,2))); |
| | | |
| | | mast.setAppeUser(userId); |
| | | mast.setAppeTime(now); |
| | |
| | | throw new CoolException("非手动调拨任务,不支持次功能"); |
| | | } |
| | | if (!Cools.isEmpty(agvWrkMast.getSourceLocNo())) { |
| | | throw new CoolException("当前货架码任有源库位,请确认"); |
| | | throw new CoolException("当前货架码有源库位,请确认"); |
| | | } |
| | | AgvBasDevp agvBasDevp = agvBasDevpService.selectByDevNo(param.getDevNo()); |
| | | if (Cools.isEmpty(agvWrkMast)) { |
| | |
| | | // TODO: 四期 |
| | | List<AgvWrkDetl> agvWrkDetls = agvWrkDetlService.selectList(new EntityWrapper<AgvWrkDetl>().eq("supp_code", param.getBarcode())); |
| | | String factory = param.getFactory(); |
| | | AgvLocMast newLocMast = agvCommonService.getLocByLocRule(3, 1, factory); |
| | | AgvLocMast newLocMast = agvCommonService.getLocByLocRule20(3, 1, factory,false); |
| | | if (newLocMast == null) { |
| | | throw new CoolException("无可用库位"); |
| | | } |