From fd047fa7234dc11643dab8ecbf38e8d7a8ba0854 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 22 十一月 2025 23:48:12 +0800
Subject: [PATCH] feat:修改任务
---
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index 6d1d189..9b9bce3 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -51,8 +51,7 @@
<if test="dispatchOrderClass != null and dispatchOrderClass != ''">
AND dispatch_order_class = #{dispatchOrderClass}
</if>
- <!-- 鏁版嵁鑼冨洿杩囨护 -->
- ${params.dataScope}
+
order by d.parent_id, d.order_num
</select>
@@ -209,5 +208,25 @@
)
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>
+
+ <!-- 鏍规嵁service_class鏌ヨ閮ㄩ棬淇℃伅 -->
+ <select id="selectDeptByServiceClass" parameterType="String" resultMap="SysDeptResult">
+ <include refid="selectDeptVo"/>
+ where d.service_order_class = #{serviceClass} and d.del_flag = '0'
+ limit 1
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1