From eb0b35549f024d7c0d3608e04fc51ef17ab3b2a0 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 24 七月 2026 14:16:23 +0800
Subject: [PATCH] (1)替换模板,需要将之前的任务模板删除
---
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