From d3bf339bd64d7b7efddc0afdd4beb1866b8b5a04 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期六, 21 九月 2024 00:47:55 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
index ab2a740..6ed52c9 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -43,6 +43,7 @@
resultMap="SysUserDeptResult">
<include refid="selectSysUserDeptVo"/>
<where>
+ del_flag=0
<if test="userId != null ">
and user_id = #{userId}
</if>
@@ -57,8 +58,12 @@
</if>
<if test="updateTime != null ">
and update_time = #{updateTime}
- </if> <if test="deptType != null ">
+ </if>
+ <if test="deptType != null ">
and dept_type = #{deptType}
+ </if>
+ <if test="deptCode != null ">
+ and dept_code = #{deptCode}
</if>
</where>
</select>
@@ -189,4 +194,14 @@
</update>
+ <update id="deleteSysUserDeptByCode" parameterType="String">
+ update sys_user_dept
+ <trim prefix="SET" suffixOverrides=",">
+ del_flag =1,
+ update_time = sysdate()
+ </trim>
+ where user_id =#{userId} and dept_code=#{deptCode}
+ </update>
+
+
</mapper>
--
Gitblit v1.9.3