From 99132a43bf344f2aafdd9894b0762d2eedd9767b Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期二, 01 七月 2025 17:15:25 +0800
Subject: [PATCH] 修改

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

diff --git a/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml b/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml
index 2602307..a08c601 100644
--- a/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/SysFunctionalDistributionMapper.xml
@@ -24,13 +24,12 @@
 		a.company_id,
 		a.clause_num,
 		a.choose_lab,
-		a.dept_name,
 		a.create_by,
 		a.create_time,
 		a.update_by,
 			a.update_time
 		from sys_functional_distribution a
-		left join sys_dept b on a.dept_id = b.id
+		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
 
@@ -45,7 +44,7 @@
 		<foreach collection="list" item="item" separator=";">
 			update sys_functional_distribution
 			<trim prefix="SET" suffixOverrides=",">
-				<if test="item.score != null">choose_lab = #{item.chooseLab},</if>
+				<if test="item.chooseLab != null">choose_lab = #{item.chooseLab},</if>
 				<if test="item.updateBy != null">update_by = #{item.updateBy},</if>
 				<if test="item.updateTime != null">update_time = #{item.updateTime},</if>
 			</trim>
@@ -53,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