| | |
| | | if (Cools.isEmpty(list)) { |
| | | return; |
| | | } |
| | | list.sort(Comparator.comparing(OrderPakout::getCreateTime, Comparator.nullsLast(Date::compareTo))); |
| | | for (OrderPakout order : list) { |
| | | if (order.getDocType() != null) { |
| | | DocType docType = docTypeService.selectById(order.getDocType()); |
| | |
| | | if (issued <= 0.0D) { |
| | | continue; |
| | | } |
| | | List<LocDetl> locDetls = locDetlService.queryStockAll(null, exist, detl.getMatnr(), detl.getBatch(), |
| | | detl.getBrand(), detl.getStandby1(), detl.getStandby2(), detl.getStandby3(), detl.getBoxType1(), detl.getBoxType2(), detl.getBoxType3()); |
| | | List<LocDetl> locDetls = locDetlService.queryStockAll(null, exist, detl.getMatnr(), detl.getBatch() != ""?detl.getBatch():"R002", |
| | | detl.getBrand(), detl.getStandby1(), detl.getStandby2(), detl.getStandby3(), detl.getBoxType1() !=""?detl.getBoxType1():"R002", detl.getBoxType2(), detl.getBoxType3()); |
| | | for (LocDetl locDetl : locDetls) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetl.getLocNo()).eq("loc_sts", "F")); |
| | | if (locMast != null) { |