From f44fc386a12e119df6ff0cd0b546bdb0d38d05db Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 27 七月 2026 13:42:48 +0800
Subject: [PATCH] 同德满意度异常,用钉钉提醒负责人

---
 smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
index 915cf2c..80691f9 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -234,7 +234,9 @@
             del_flag =1,
             update_time = sysdate()
         </trim>
-        where user_id =#{userId} and dept_code=#{deptCode}
+        where del_flag = 0
+            and user_id =#{userId}
+            and dept_code=#{deptCode}
     </update>
 
     <update id="updateSysUserDeptForSync" parameterType="com.ruoyi.common.core.domain.entity.SysUserDept">

--
Gitblit v1.9.3