From 2aebbc9601ab439707f69b08e467808df9f7549c Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期五, 07 十一月 2025 11:50:26 +0800
Subject: [PATCH] feat: weixin

---
 ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java |   18 ++++++++++++++++++
 1 files changed, 18 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..df69912 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
@@ -132,4 +132,22 @@
      * @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);
 }

--
Gitblit v1.9.1