| | |
| | | return R.error("高低检测信号不能为空"); |
| | | } |
| | | |
| | | |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(param.getSourceStaNo(), true); |
| | | if (Cools.isEmpty(sourceStaNo)){ |
| | |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | // 检索库位 |
| | | List<String> matNos = pltBarcodes.stream().map(PltBarcode::getMatNo).distinct().collect(Collectors.toList()); |
| | | StartupDto dto = commonService.getLocNo(1, 1, devpNo, false, matNos, locTypeDto,0); |
| | | StartupDto dto; |
| | | if (devpNo == 304) { |
| | | dto = commonService.getLocNoBy304(barcode); |
| | | } else { |
| | | dto = commonService.getLocNo(1, 1, devpNo, false, matNos, locTypeDto,0); |
| | | } |
| | | int workNo = dto.getWorkNo(); |
| | | |
| | | // 生成工作档 |
| | |
| | | // 生成工作档明细 |
| | | List<MatCodeCountDto> matDtos = new ArrayList<>(); |
| | | pltBarcodes.forEach(elem -> { |
| | | matDtos.add(new MatCodeCountDto(elem.getBillNo(), elem.getSeqNo(), elem.getMatNo(), elem.getQty())); |
| | | matDtos.add(new MatCodeCountDto(elem.getBillNo(), elem.getSeqNo(), elem.getMatNo(), elem.getSupplier(), elem.getQty(),elem.getSource(),elem.getVendor(),elem.getMemo())); |
| | | |
| | | //更新组托数据状态为入库中 |
| | | Wrapper<PltBarcode> wrapper = new EntityWrapper<PltBarcode>().eq("barcode", elem.getBarcode()) |
| | |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(devpNo, true); |
| | | // 检索库位 |
| | | StartupDto dto = commonService.getLocNo(1, 10, devpNo, true, null, locTypeDto,0); |
| | | // StartupDto dto = commonService.getLocNo(1, 10, devpNo, true, null, locTypeDto,0); |
| | | StartupDto dto = commonService.emptyIngetLocNo(devpNo); |
| | | int workNo = dto.getWorkNo(); |
| | | // 生成工作档 |
| | | WrkMast wrkMast = new WrkMast(); |