src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java
@@ -951,6 +951,11 @@ if (collection.getId() == null) { continue; } // 回款单已直接记录销售台账id,未发货的先期回款也能归属到合同 if (collection.getSalesLedgerId() != null) { result.put(collection.getId(), new LinkedHashSet<>(List.of(collection.getSalesLedgerId()))); continue; } List<Long> stockOutRecordIds = parseLongIds(collection.getStockOutRecordIds()); if (stockOutRecordIds.isEmpty()) { continue;