From be5783c8a7e13bbc76d33c95643d75779cce21db Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期六, 18 七月 2026 15:39:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_business' into dev_business

---
 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