| | |
| | | |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysUser" id="SysUserResult"> |
| | | <id property="userId" column="user_id"/> |
| | | <id property="orgid" column="orgid"/> |
| | | <id property="hisUserId" column="his_user_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | <result property="userCode" column="user_code"/> |
| | |
| | | u.create_time, |
| | | u.remark, |
| | | u.guid, |
| | | u.orgid, |
| | | d.dept_id, |
| | | d.parent_id, |
| | | d.ancestors, |
| | |
| | | r.data_scope, |
| | | r.status as role_status |
| | | from sys_user u |
| | | left join sys_user_org o on o.user_id = u.user_id |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.birthday, |
| | | u.orgid, |
| | | u.job_phone, |
| | | u.phonenumber, u.sex, u.status, |
| | | u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user |
| | |
| | | u.email, |
| | | u.birthday, |
| | | u.job_phone, |
| | | u.orgid, |
| | | u.phonenumber, u.status,u.id_card, |
| | | u.create_time |
| | | from sys_user u |
| | |
| | | u.email, |
| | | u.his_user_id, |
| | | u.title, |
| | | u.orgid, |
| | | u.job_phone, |
| | | u.birthday, |
| | | u.phonenumber, u.status,u.id_card, |
| | |
| | | <if test="birthday != null ">birthday,</if> |
| | | <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> |
| | | <if test="userCode != null and userCode != ''">user_code,</if> |
| | |
| | | <if test="birthday != null">#{birthday},</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> |
| | | <if test="userCode != null and userCode != ''">#{userCode},</if> |
| | |
| | | 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_code, |
| | | create_time |
| | | ) values |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | #{item.birthday}, |
| | | #{item.hisUserId}, |
| | | #{item.guid}, |
| | | #{item.orgid}, |
| | | #{item.userCode}, |
| | | now() |
| | | ) |
| | |
| | | <if test="idCard != null and idCard != ''">id_card=#{idCard},</if> |
| | | <if test="jobPhone != null and jobPhone != ''">job_phone=#{jobPhone},</if> |
| | | <if test="birthday != null ">birthday=#{birthday},</if> |
| | | <if test="orgid != null ">orgid=#{orgid},</if> |
| | | <if test="userCode != null ">user_code=#{userCode},</if> |
| | | <if test="title != null and title != ''"> |
| | | title = #{title}, |