| | |
| | | private Map<Long, Long> queryPurchaseLedgerIdByQualityInspectId(Collection<StockInRecord> stockInRecords) { |
| | | Set<Long> qualityInspectIds = stockInRecords.stream() |
| | | .filter(Objects::nonNull) |
| | | .filter(item -> item.getRecordId() != null && "10".equals(safe(item.getRecordType()))) |
| | | .filter(item -> item.getRecordId() != null && "10".equals(safe(item.getRecordType()).trim())) |
| | | .map(StockInRecord::getRecordId) |
| | | .collect(Collectors.toSet()); |
| | | if (qualityInspectIds.isEmpty()) { |
| | |
| | | if (stockInRecord.getApprovalStatus() != null && stockInRecord.getApprovalStatus() != 1) { |
| | | continue; |
| | | } |
| | | String recordType = safe(stockInRecord.getRecordType()); |
| | | String recordType = safe(stockInRecord.getRecordType()).trim(); |
| | | if ("7".equals(recordType)) { |
| | | result.add(stockInRecord.getRecordId()); |
| | | } else if ("10".equals(recordType)) { |