| | |
| | | if (issued.doubleValue() <= 0) { |
| | | continue; |
| | | } |
| | | List<LocItem> locItems = null; |
| | | List<LocItem> locItems = new ArrayList<>(); |
| | | List<LocItem> items = locItemService.list(new LambdaQueryWrapper<LocItem>() |
| | | .eq(StringUtils.isNotBlank(asnOrderItem.getSplrBatch()), LocItem::getBatch, asnOrderItem.getSplrBatch()) |
| | | .eq(StringUtils.isNotBlank(asnOrderItem.getFieldsIndex()), LocItem::getFieldsIndex, asnOrderItem.getFieldsIndex()) |
| | |
| | | locItems.add(item); |
| | | } |
| | | } |
| | | if (locItems.isEmpty()) { |
| | | locItems.addAll(items); |
| | | } |
| | | } |
| | | |
| | | if (Objects.isNull(locItems) || locItems.isEmpty()) { |
| | | if (locItems.isEmpty()) { |
| | | if (WaveRuleType.Efficiency_First.type.equals(waveRule.getType())) { |
| | | locItems = getEfficiencyFirstItemList(asnOrderItem); |
| | | } else if (WaveRuleType.First_In_First_Out.type.equals(waveRule.getType())) { |