From 1fb7fc160753c4283f7b84c14f931d87b6c922e4 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 10 七月 2025 14:58:05 +0800
Subject: [PATCH] 代码提交

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

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
index 861e149..515c620 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
@@ -309,6 +309,43 @@
         )
     </insert>
 
+
+    <insert id="batchUser">
+        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,
+        create_time
+        ) values
+        <foreach collection="list" item="item" separator=",">
+            (
+            #{item.userId},
+            #{item.deptId},
+            #{item.userName},
+            #{item.nickName},
+            #{item.email},
+            #{item.avatar},
+            #{item.phonenumber},
+            #{item.sex},
+            #{item.password},
+            #{item.status},
+            #{item.createBy},
+            #{item.remark},
+            #{item.userType},
+            #{item.deptInfo},
+            #{item.hospInfo},
+            #{item.searchscope},
+            #{item.idCard},
+            #{item.title},
+            #{item.jobPhone},
+            #{item.birthday},
+            #{item.hisUserId},
+            #{item.guid},
+            #{item.orgid},
+            now()
+            )
+        </foreach>
+    </insert>
+
     <update id="updateUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
         update sys_user
         <set>
@@ -344,11 +381,6 @@
         where user_id = #{userId}
     </update>
 
-    <update id="updateUserStatus" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
-        update sys_user
-        set status = #{status}
-        where user_id = #{userId}
-    </update>
 
     <update id="updateUserAvatar" parameterType="com.ruoyi.common.core.domain.entity.SysUser">
         update sys_user

--
Gitblit v1.9.3