| | |
| | | <result property="loginIp" column="login_ip"/> |
| | | <result property="loginDate" column="login_date"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="idCard" column="id_card"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | |
| | | <sql id="selectUserVo"> |
| | | select u.user_id, |
| | | u.dept_id, |
| | | u.id_card, |
| | | u.hosp_info, |
| | | u.dept_info, |
| | | u.searchscope, |
| | |
| | | </sql> |
| | | |
| | | <select id="selectUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_type, u.nick_name, u.user_name, u.email, |
| | | select u.user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_type, u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | 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 |
| | |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | AND u.id_card = #{idCard} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | |
| | | |
| | | <select id="selectAllocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_name, u.user_type, u.nick_name, |
| | | select distinct u.user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_name, u.user_type, |
| | | u.nick_name, |
| | | u.email, |
| | | u.phonenumber, u.status, |
| | | u.phonenumber, u.status,u.id_card, |
| | | u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | |
| | | |
| | | <select id="selectUnallocatedList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.hosp_info, u.dept_info,u.searchscope, u.user_name, u.user_type, u.nick_name, |
| | | select distinct u.user_id, u.dept_id, u.hosp_info, u.dept_info,u.searchscope, u.user_name, u.user_type, |
| | | u.nick_name, |
| | | u.email, |
| | | u.phonenumber, u.status, |
| | | u.phonenumber, u.status,u.id_card, |
| | | u.create_time |
| | | from sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | |
| | | <if test="deptInfo != null and deptInfo != ''">dept_info,</if> |
| | | <if test="hospInfo != null and hospInfo != ''">hosp_info,</if> |
| | | <if test="searchscope != null and searchscope != ''">searchscope,</if> |
| | | <if test="idCard != null and idCard != ''">id_card,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | |
| | | <if test="deptInfo != null and deptInfo != ''">#{deptInfo},</if> |
| | | <if test="hospInfo != null and hospInfo != ''">#{hospInfo},</if> |
| | | <if test="searchscope != null and searchscope != ''">#{searchscope},</if> |
| | | <if test="idCard != null and idCard != ''">#{idCard},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | <if test="searchscope != null">searchscope = #{searchscope},</if> |
| | | <if test="deptInfo != null and deptInfo != ''">dept_info=#{deptInfo},</if> |
| | | <if test="hospInfo != null and hospInfo != ''">hosp_info=#{hospInfo},</if> |
| | | <if test="idCard != null and idCard != ''">id_card=#{idCard},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |