| | |
| | | } |
| | | log.info("启动入库,{}", JSON.toJSONString(params)); |
| | | // 组托 |
| | | if (params.getBarcode().startsWith("31")) { |
| | | //箱壳入库,货架上只能装一种 |
| | | if (!Cools.isEmpty(params.getCombParams())) { |
| | | if (params.getCombParams().size() > 1) { |
| | | return R.error("半成品箱壳入库,货架上只能装一种物料"); |
| | | } else { |
| | | List<CombParam.CombMat> combMats = params.getCombParams().get(0).getCombMats(); |
| | | if (!Cools.isEmpty(combMats) && combMats.size() > 1) { |
| | | return R.error("半成品箱壳入库,货架上只能装一种物料"); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | params.getCombParams().forEach(combParam -> { |
| | | agvMobileService.comb(combParam, getUserId()); |
| | | }); |
| | |
| | | if (Cools.isEmpty(locMastS)) { |
| | | throw new CoolException("当前库位非在库状态!库位号=" + locNo); |
| | | } |
| | | AgvWrkMast wrkMast = createWrkMast(114, 22L, locNo, "", barcode, now, getUserId(), 30, 1); |
| | | AgvWrkMast wrkMast = createWrkMast(114, 22L, locNo, "", barcode, now, getUserId(), Integer.parseInt(barcode.substring(0,2)), 1); |
| | | // 同步调拨单 |
| | | List<AgvLocDetl> agvLocDetls = agvLocDetlService.selectList(new EntityWrapper<AgvLocDetl>().eq("loc_no", locNo)); |
| | | for (AgvLocDetl agvLocDetl : agvLocDetls) { |