| | |
| | | //货架编码 |
| | | 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("无可用库位"); |
| | | } |
| | |
| | | if (newLocMast.getLev1() == 1 && !factory.equals(AsrsConstants.SANCHANG)) { |
| | | agvWrkMast.setCtnNo("1"); |
| | | } else if (newLocMast.getLev1() == 2 && !factory.equals(AsrsConstants.ERCHANG)) { |
| | | agvWrkMast.setCtnNo("1"); |
| | | agvWrkMast.setCtnNo("2"); |
| | | } |
| | | } |
| | | if (!agvWrkMastService.update(agvWrkMast, new EntityWrapper<AgvWrkMast>().eq("wrk_no", agvWrkMast.getWrkNo()))) { |