|  |  | 
 |  |  |         <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> | 
 |  |  | 
 |  |  |         <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" 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, | 
 |  |  |         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"> | 
 |  |  | 
 |  |  |         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 |