From 2576c71ce6a7d0465fcbc5ebc7507da9472c41a3 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期三, 05 十一月 2025 23:41:12 +0800
Subject: [PATCH] feat: 创建转运任务

---
 ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index aa40711..f4b16dd 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -208,5 +208,18 @@
 			)
 		end
 	</select>
+	
+	<!-- 鏍规嵁缂栫爜鍒楄〃鏌ヨ鍒嗗叕鍙� -->
+	<select id="selectBranchCompaniesByOrderCodes" resultMap="SysDeptResult">
+		select dept_id, dept_name, parent_id, ancestors, service_order_class, dispatch_order_class
+		from sys_dept
+		where parent_id = 100
+		and del_flag = '0'
+		and (
+			<foreach collection="orderCodes" item="code" separator=" or ">
+				service_order_class = #{code} or dispatch_order_class = #{code}
+			</foreach>
+		)
+	</select>
 
 </mapper> 
\ No newline at end of file

--
Gitblit v1.9.1