From 33e1839c6214ad72cc5a76ae254ce0bb542e9263 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期六, 10 十月 2026 09:31:11 +0800
Subject: [PATCH] 提交

---
 smartor/src/main/resources/mapper/smartor/SysUserMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
index 428a18a..e9089d8 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
@@ -125,6 +125,9 @@
         from sys_user u
         left join sys_dept d on u.dept_id = d.dept_id
         where u.del_flag = '0'
+        <if test="orgid != null and orgid != ''">
+            AND u.orgid = #{orgid}
+        </if>
         <if test="userId != null and userId != 0">
             AND u.user_id = #{userId}
         </if>
@@ -292,8 +295,8 @@
         <if test="campusid != null and campusid != ''">campusid,</if>
         create_time
         )values(
-        <if test="userId != null and userId != ''">#{userId},</if>
-        <if test="deptId != null and deptId != ''">#{deptId},</if>
+        <if test="userId != null and userId != 0">#{userId},</if>
+        <if test="deptId != null and deptId != 0">#{deptId},</if>
         <if test="userName != null and userName != ''">#{userName},</if>
         <if test="nickName != null and nickName != ''">#{nickName},</if>
         <if test="email != null and email != ''">#{email},</if>

--
Gitblit v1.9.3