|
|
@ -32,8 +32,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="hospitalName" column="hospital_name"/>
|
|
|
|
<result property="hospitalName" column="hospital_name"/>
|
|
|
|
<result property="title" column="title"/>
|
|
|
|
<result property="title" column="title"/>
|
|
|
|
<result property="speciality" column="speciality"/>
|
|
|
|
<result property="speciality" column="speciality"/>
|
|
|
|
<result property="medicalLicense" column="medicalLicense"/>
|
|
|
|
<result property="medicalLicense" column="medical_license"/>
|
|
|
|
<result property="medicalLicense2" column="medicalLicense2"/>
|
|
|
|
<result property="medicalLicense2" column="medical_license2"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="deptResult" type="SysDept">
|
|
|
|
<resultMap id="deptResult" type="SysDept">
|
|
|
@ -140,9 +140,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectUserById" parameterType="Long" resultMap="UserExResult">
|
|
|
|
<select id="selectUserById" parameterType="Long" resultMap="UserExResult">
|
|
|
|
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
|
|
|
select u.user_id,
|
|
|
|
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,td.hospital_id,
|
|
|
|
u.dept_id,
|
|
|
|
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
|
|
|
|
u.user_name,
|
|
|
|
|
|
|
|
u.nick_name,
|
|
|
|
|
|
|
|
u.email,
|
|
|
|
|
|
|
|
u.avatar,
|
|
|
|
|
|
|
|
u.phonenumber,
|
|
|
|
|
|
|
|
u.password,
|
|
|
|
|
|
|
|
u.sex,
|
|
|
|
|
|
|
|
u.status,
|
|
|
|
|
|
|
|
u.del_flag,
|
|
|
|
|
|
|
|
u.login_ip,
|
|
|
|
|
|
|
|
u.login_date,
|
|
|
|
|
|
|
|
u.create_by,
|
|
|
|
|
|
|
|
u.create_time,
|
|
|
|
|
|
|
|
u.remark,
|
|
|
|
|
|
|
|
d.dept_id,
|
|
|
|
|
|
|
|
d.parent_id,
|
|
|
|
|
|
|
|
d.ancestors,
|
|
|
|
|
|
|
|
d.dept_name,
|
|
|
|
|
|
|
|
d.order_num,
|
|
|
|
|
|
|
|
d.leader,
|
|
|
|
|
|
|
|
d.status as dept_status,
|
|
|
|
|
|
|
|
td.hospital_id,
|
|
|
|
|
|
|
|
td.title,
|
|
|
|
|
|
|
|
td.speciality,
|
|
|
|
|
|
|
|
td.medical_license,
|
|
|
|
|
|
|
|
td.medical_license2,
|
|
|
|
|
|
|
|
r.role_id,
|
|
|
|
|
|
|
|
r.role_name,
|
|
|
|
|
|
|
|
r.role_key,
|
|
|
|
|
|
|
|
r.role_sort,
|
|
|
|
|
|
|
|
r.data_scope,
|
|
|
|
|
|
|
|
r.status as role_status
|
|
|
|
from sys_user u
|
|
|
|
from sys_user u
|
|
|
|
left join sys_dept d on u.dept_id = d.dept_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_user_role ur on u.user_id = ur.user_id
|
|
|
@ -295,6 +326,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
|
AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
|
AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="hospitalId != null and hospitalId != 0">
|
|
|
|
|
|
|
|
AND td.hospital_id = #{hospitalId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
ORDER BY u.user_id
|
|
|
|
ORDER BY u.user_id
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|