From f02d0df2f1dfc7a8b775cf50d45375e57628a5ef Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 10 十一月 2026 11:26:22 +0800
Subject: [PATCH] feat(ncr): 完善NCR处置联动逻辑与关闭校验

---
 yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java b/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java
index 0e59d84..7cbbcef 100644
--- a/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java
+++ b/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java
@@ -737,6 +737,16 @@
     }
 
     @Override
+    public Map<Long, Long> getContractCountMapByCustomerIds(Collection<Long> customerIds) {
+        return contractMapper.selectContractCountMapByCustomerIds(customerIds);
+    }
+
+    @Override
+    public Map<Long, BigDecimal> getContractPriceMapByCustomerIds(Collection<Long> customerIds) {
+        return contractMapper.selectContractPriceMapByCustomerIds(customerIds);
+    }
+
+    @Override
     public List<CrmContractProductDO> getContractProductListByContractId(Long contactId) {
         return contractProductMapper.selectListByContractId(contactId);
     }
@@ -801,6 +811,8 @@
                     item.setProductId(cp.getItemId());
                     item.setProductPrice(cp.getContractPrice());
                     item.setCount(cp.getCount());
+                    // 涓庨〉闈㈡柊澧炴槑缁嗙殑榛樿鍊间竴鑷达細榛樿闇�瑕佺敓浜э紝杞崟鍚庡彲鍦ㄦ彁浜ゅ墠鎸夊疄闄呮儏鍐垫敼涓衡�滀笉闇�瑕佺敓浜р��
+                    item.setNeedProduction(1);
                     return item;
                 })
                 .toList();

--
Gitblit v1.9.3