demand: 分批逻辑修复

This commit is contained in:
aike 2025-12-12 14:19:04 +08:00
parent c445db1d3e
commit 29ed646b45

View File

@ -269,7 +269,7 @@ public class EmisTmsSiteBatchDtlServiceImpl implements IEmisTmsSiteBatchDtlServi
.filter(batch -> supplierCodeList.contains(batch.getSupplierCode()))
.collect(Collectors.toList());
if (!matchedBatches.isEmpty()) {
if (!matchedBatches.isEmpty()&&!supplierCode.equals(matchedBatches.get(0).getSupplierCode())) {
matchedBatchGroups.add(matchedBatches);
}
}