From dacdebbaa53fa57feef43d77365f1c4d4a8ff400 Mon Sep 17 00:00:00 2001 From: zhs <zhs18203887318@163.com> Date: 星期五, 30 五月 2025 14:01:15 +0800 Subject: [PATCH] 05-30 zhs --- smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml index 3cc633b..a9dbac8 100644 --- a/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml @@ -46,6 +46,7 @@ <include refid="selectSysUserDeptVo"/> <where> del_flag=0 + and orgid=#{orgid} <if test="userId != null "> and user_id = #{userId} </if> @@ -101,8 +102,9 @@ </if> <if test="deptName != null "> dept_name, - </if> <if test="orgid != null "> - orgid, + </if> + <if test="orgid != null "> + orgid, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> @@ -127,7 +129,8 @@ </if> <if test="deptName != null "> #{deptName}, - </if><if test="orgid != null "> + </if> + <if test="orgid != null "> #{orgid}, </if> </trim> @@ -159,8 +162,9 @@ </if> <if test="deptName != null "> dept_name = #{deptName}, - </if> <if test="orgid != null "> - orgid = #{orgid}, + </if> + <if test="orgid != null "> + orgid = #{orgid}, </if> </trim> where id = #{id} -- Gitblit v1.9.3