| | |
| | | } |
| | | List<OrderDetl> orderDetls = orderDetlService.selectBatchIds(ids); |
| | | List<LocDto> locDtos = new ArrayList<>(); |
| | | |
| | | orderDetls = orderDetls.stream() |
| | | .sorted(Comparator.comparing(OrderDetl::getMatnr).thenComparing(OrderDetl::getBatch)) |
| | | .collect(Collectors.toList()); |
| | | Set<String> exist = new HashSet<>(); |
| | | |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls; |
| | | if (Cools.isEmpty(orderDetls.get(0).getSPgNO())) { |
| | | locDetls = locDetlService.queryStockByModel(orderDetl.getModel()); |
| | | } else { |
| | | locDetls = locDetlService.queryStock(orderDetl.getSPgNO()); |
| | | } |
| | | List<LocDetl> locDetls = locDetlService.queryStock(orderDetl); |
| | | |
| | | for (LocDetl locDetl : locDetls) { |
| | | if (locDetl.getMatnr().equals(orderDetl.getMatnr())) { |
| | | if (issued > 0) { |