From cfe0b79fbea0fb1d7a5a796e71ada7d3b7812046 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期一, 15 十二月 2025 22:31:33 +0800
Subject: [PATCH] feat: 企业微信发送微信小程序cetd

---
 ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
index 17221c5..27e47e0 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
@@ -36,6 +36,7 @@
      */
     public SysDept selectDeptById(Long deptId);
 
+    public List<SysDept> selectDeptListByParentId(Long parentId);
     /**
      * 鏍规嵁ID鏌ヨ鎵�鏈夊瓙閮ㄩ棬
      * 
@@ -132,4 +133,30 @@
      * @return 閮ㄩ棬淇℃伅
      */
     public SysDept selectDeptByDepartmentIdAndParentId(@Param("departmentId") Integer departmentId, @Param("parentId") Long parentId);
+
+    /**
+     * 鑾峰彇鎸囧畾閮ㄩ棬ID鐨勫垎鍏徃ID锛坧arent_id=100鐨勯儴闂級
+     * 濡傛灉浼犲叆鐨勫氨鏄垎鍏徃锛岀洿鎺ヨ繑鍥烇紱鍚﹀垯浠巃ncestors涓煡鎵惧垎鍏徃ID
+     * 
+     * @param deptId 閮ㄩ棬ID
+     * @return 鍒嗗叕鍙窱D锛屽鏋滄壘涓嶅埌鍒欒繑鍥瀗ull
+     */
+    public Long selectBranchCompanyIdByDeptId(@Param("deptId") Long deptId);
+    
+    /**
+     * 鏍规嵁缂栫爜鍒楄〃鏌ヨ鍒嗗叕鍙�
+     * 鍦╯ervice_order_class鎴杁ispatch_order_class涓尮閰�
+     * 
+     * @param orderCodes 缂栫爜鍒楄〃
+     * @return 鍒嗗叕鍙稿垪琛�
+     */
+    public List<SysDept> selectBranchCompaniesByOrderCodes(@Param("orderCodes") List<String> orderCodes);
+    
+    /**
+     * 鏍规嵁service_class鏌ヨ閮ㄩ棬淇℃伅
+     * 
+     * @param serviceClass 鏈嶅姟绫诲埆缂栫爜
+     * @return 閮ㄩ棬淇℃伅
+     */
+    public SysDept selectDeptByServiceClass(@Param("serviceClass") String serviceClass);
 }

--
Gitblit v1.9.1