From d52fedc8f49c1e7d9e58dcde1b278470e4228f39 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 26 九月 2025 17:43:02 +0800
Subject: [PATCH] 新增Orgid

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

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
index 2725d6c..1085485 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
@@ -125,7 +125,10 @@
             AND u.user_id = #{userId}
         </if>
         <if test="userName != null and userName != ''">
-            AND u.user_name like concat('%', #{userName}, '%')
+            AND u.user_name = #{userName}
+        </if>
+          <if test="orgid != null and orgid != ''">
+            AND u.orgid = #{orgid}
         </if>
         <if test="nickName != null and nickName != ''">
             AND u.nick_name like concat('%', #{nickName}, '%')
@@ -323,7 +326,8 @@
     <insert id="batchUser" useGeneratedKeys="true" keyProperty="userId">
         insert into sys_user(
         user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, sex, password, status, create_by, remark,
-        user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, orgid,user_code,
+        user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid,
+        orgid,user_code,
         create_time
         ) values
         <foreach collection="list" item="item" separator=",">

--
Gitblit v1.9.3