From d76e92d1a0586865e75cf36b95363c433435fa02 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 23 四月 2025 13:23:02 +0800
Subject: [PATCH] 代码提交

---
 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