| | |
| | | <result property="searchscope" column="searchscope"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole"> |
| | |
| | | u.dept_id, |
| | | u.id_card, |
| | | u.hosp_info, |
| | | u.campusid, |
| | | u.dept_info, |
| | | u.searchscope, |
| | | u.user_name, |
| | |
| | | u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.campusid, |
| | | u.dept_name, |
| | | u.dept_code, |
| | | u.birthday, |
| | |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | AND u.id_card = #{idCard} |
| | |
| | | </select> |
| | | <select id="getUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_id,u.title,u.his_user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_type, |
| | | u.nick_name, u.user_name, |
| | | u.nick_name, u.user_name,u.campusid, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.dept_name, |
| | |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | |
| | | u.email, |
| | | u.dept_code, |
| | | u.dept_name, |
| | | u.campusid, |
| | | u.birthday, |
| | | u.job_phone, |
| | | u.phonenumber, u.status,u.id_card, |
| | |
| | | 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, |
| | | u.campusid, |
| | | u.email, |
| | | u.his_user_id, |
| | | u.title, |
| | |
| | | <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="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</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="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | </if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code=#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name=#{deptName},</if> |
| | | <if test="campusid != null and campusid != ''">campusid=#{campusid},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |