yuan
2 天以前 569655a9a25e87e9b5ea985df2e7a214e61d25ad
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;