From 45e511fe87a7b838a084ce524c8566d20e56059a Mon Sep 17 00:00:00 2001
From: zhs <zhs18203887318@163.com>
Date: 星期二, 22 四月 2025 18:20:35 +0800
Subject: [PATCH] 04-22 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