From d5cd948848595b0cffe098ba542a9c879b0f9165 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 13 七月 2026 10:09:39 +0800
Subject: [PATCH] 1.仓储物流-采购模块联动 2.仓储物流-销售模块联动 3.清理表数据

---
 yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractService.java |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractService.java b/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractService.java
index 0d8964f..80693c2 100644
--- a/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractService.java
+++ b/yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractService.java
@@ -67,10 +67,18 @@
     /**
      * 鍙戣捣鍚堝悓瀹℃壒娴佺▼
      *
-     * @param id     鍚堝悓缂栧彿
-     * @param userId 鐢ㄦ埛缂栧彿
+     * @param id                    鍚堝悓缂栧彿
+     * @param processDefinitionKey  娴佺▼瀹氫箟 Key
+     * @param userId                鐢ㄦ埛缂栧彿
      */
-    void submitContract(Long id, Long userId);
+    void submitContract(Long id, String processDefinitionKey, Long userId);
+
+    /**
+     * 鑾峰彇鍚堝悓瀹℃壒娴佺▼鍒楄〃
+     *
+     * @return 娴佺▼瀹氫箟鍒楄〃
+     */
+    List<Map<String, Object>> getContractApproveProcessDefinitionList();
 
     /**
      * 鏇存柊鍚堝悓娴佺▼瀹℃壒缁撴灉
@@ -202,4 +210,29 @@
      */
     List<CrmContractDO> getContractListByCustomerIdOwnerUserId(Long customerId, Long ownerUserId);
 
+    /**
+     * 鏍规嵁鍚堝悓鐢熸垚閿�鍞鍗�
+     *
+     * @param id     鍚堝悓缂栧彿
+     * @param userId 鐢ㄦ埛缂栧彿
+     * @return 閿�鍞鍗曠紪鍙�
+     */
+    Long generateSaleOrder(Long id, Long userId);
+
+    /**
+     * 鏇存柊鍚堝悓鐘舵��
+     *
+     * @param id     鍚堝悓缂栧彿
+     * @param status 鐘舵��
+     */
+    void updateContractStatus(Long id, Integer status);
+
+    /**
+     * 鏍规嵁閿�鍞鍗曠紪鍙锋洿鏂板悎鍚岀姸鎬�
+     *
+     * @param orderId 閿�鍞鍗曠紪鍙�
+     * @param status  鐘舵��
+     */
+    void updateContractStatusByOrderId(Long orderId, Integer status);
+
 }

--
Gitblit v1.9.3