|
|
@ -185,34 +185,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
td.introduction,
|
|
|
|
td.introduction,
|
|
|
|
td.medical_license AS medicalLicense,
|
|
|
|
td.medical_license AS medicalLicense,
|
|
|
|
td.medical_license2 AS medicalLicense2,
|
|
|
|
td.medical_license2 AS medicalLicense2,
|
|
|
|
qr_code AS qrCode,
|
|
|
|
td.qr_code AS qrCode,
|
|
|
|
del_flag AS delFlag,
|
|
|
|
td.del_flag AS delFlag,
|
|
|
|
td.hospital_id AS hospitalId,
|
|
|
|
td.hospital_id AS hospitalId,
|
|
|
|
th.`name` AS hospitalName,
|
|
|
|
th.`name` AS hospitalName,
|
|
|
|
create_time AS createTime,
|
|
|
|
td.create_time AS createTime,
|
|
|
|
update_time AS updateTime
|
|
|
|
td.update_time AS updateTime
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
t_doctor td
|
|
|
|
t_doctor td
|
|
|
|
LEFT JOIN t_hospital th ON td.hospital_id = th.id
|
|
|
|
LEFT JOIN t_hospital th ON td.hospital_id = th.id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="startTime != null and endTime != null">
|
|
|
|
<if test="startTime != null and endTime != null">
|
|
|
|
AND create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and
|
|
|
|
AND td.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and
|
|
|
|
DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
AND td.name like concat('%', #{name}, '%')
|
|
|
|
AND td.name like concat('%', #{name}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="identifier != null and identifier != ''">
|
|
|
|
<if test="identifier != null and identifier != ''">
|
|
|
|
AND identifier like concat('%', #{identifier}, '%')
|
|
|
|
AND td.identifier like concat('%', #{identifier}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="hospitalId != null">
|
|
|
|
<if test="hospitalId != null">
|
|
|
|
and hospital_id = #{hospitalId}
|
|
|
|
and td.hospital_id = #{hospitalId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="delFlag != null">
|
|
|
|
<if test="delFlag != null">
|
|
|
|
and del_flag = #{delFlag}
|
|
|
|
and td.del_flag = #{delFlag}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
order by create_time desc
|
|
|
|
order by td.create_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryPatintCountByDoctor" resultType="int">
|
|
|
|
<select id="queryPatintCountByDoctor" resultType="int">
|
|
|
@ -230,22 +230,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="selectAppDoctorDetailById" resultType="com.ruoyi.system.domain.resp.AppDoctorResp">
|
|
|
|
<select id="selectAppDoctorDetailById" resultType="com.ruoyi.system.domain.resp.AppDoctorResp">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
td.id,
|
|
|
|
td.id,
|
|
|
|
user_id AS userId,
|
|
|
|
td.user_id AS userId,
|
|
|
|
identifier,
|
|
|
|
td.identifier,
|
|
|
|
td.`name`,
|
|
|
|
td.`name`,
|
|
|
|
th.`id` AS hospitalId,
|
|
|
|
th.`id` AS hospitalId,
|
|
|
|
th.`name` AS hospitalName,
|
|
|
|
th.`name` AS hospitalName,
|
|
|
|
phone,
|
|
|
|
td.phone,
|
|
|
|
sex,
|
|
|
|
td.sex,
|
|
|
|
age,
|
|
|
|
td.age,
|
|
|
|
marriage,
|
|
|
|
td.marriage,
|
|
|
|
title,
|
|
|
|
td.title,
|
|
|
|
speciality,
|
|
|
|
td.speciality,
|
|
|
|
introduction,
|
|
|
|
td.introduction,
|
|
|
|
medical_license AS medicalLicense,
|
|
|
|
td.medical_license AS medicalLicense,
|
|
|
|
medical_license2 AS medicalLicense2,
|
|
|
|
td.medical_license2 AS medicalLicense2,
|
|
|
|
qr_code AS qrCode,
|
|
|
|
td.qr_code AS qrCode,
|
|
|
|
hospital_id AS hospitalId
|
|
|
|
td.hospital_id AS hospitalId
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
t_doctor td
|
|
|
|
t_doctor td
|
|
|
|
LEFT JOIN t_hospital th ON th.id = td.hospital_id
|
|
|
|
LEFT JOIN t_hospital th ON th.id = td.hospital_id
|
|
|
|