From d7fd24cda7b8b5124fca826fa4301cdb3acdb6b5 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 19 八月 2025 17:46:52 +0800
Subject: [PATCH] 代码提交

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

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
index 515c620..6de8bc6 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserMapper.xml
@@ -280,6 +280,8 @@
         <if test="hisUserId != null and hisUserId != ''">his_user_id,</if>
         <if test="guid != null and guid != ''">guid,</if>
         <if test="orgid != null and orgid != ''">orgid,</if>
+        <if test="deptCode != null and deptCode != ''">dept_code,</if>
+        <if test="deptName != null and deptName != ''">dept_name,</if>
         create_time
         )values(
         <if test="userId != null and userId != ''">#{userId},</if>
@@ -305,12 +307,14 @@
         <if test="hisUserId != null and hisUserId != ''">#{hisUserId},</if>
         <if test="guid != null and guid != ''">#{guid},</if>
         <if test="orgid != null and orgid != ''">#{orgid},</if>
+        <if test="deptCode != null and deptCode != ''">#{deptCode},</if>
+        <if test="deptName != null and deptName != ''">#{deptName},</if>
         sysdate()
         )
     </insert>
 
 
-    <insert id="batchUser">
+    <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,

--
Gitblit v1.9.3