吴羡
12 小时以前 5563586beaa4c70d0d570848fa39c12a5f1e3ed7
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;