From 0817c036bbb0abefbb9aa26cbabe7ef7f6c38f49 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期三, 09 七月 2025 16:53:04 +0800
Subject: [PATCH] 修改

---
 multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml b/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml
index 0b505ee..7d5b3c4 100644
--- a/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml
@@ -31,7 +31,7 @@
 		from sys_functional_distribution a
 		left join sys_dept b on a.dept_id = b.dept_id
 		where 1=1 and a.company_id = #{companyId}
-		order by a.clause_num asc
+		order by b.order_num asc ,a.clause_num asc
 
 	</select>
 	<insert id="batchInsert">
@@ -52,5 +52,8 @@
 		</foreach>
 	</update>
 
+	<delete id="delByCompanyId" parameterType="Long">
+		delete from sys_functional_distribution where company_id = #{companyId}
+	</delete>
 
 </mapper> 
\ No newline at end of file

--
Gitblit v1.9.2