|
|
@ -147,30 +147,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryByPage" resultType="com.ruoyi.system.domain.resp.PcTDoctorQueryByPageResp">
|
|
|
|
<select id="queryByPage" resultType="com.ruoyi.system.domain.resp.PcTDoctorQueryByPageResp">
|
|
|
|
select
|
|
|
|
SELECT
|
|
|
|
id,
|
|
|
|
td.id,
|
|
|
|
user_id as userId,
|
|
|
|
td.user_id AS userId,
|
|
|
|
identifier,
|
|
|
|
td.identifier,
|
|
|
|
name,
|
|
|
|
td.NAME,
|
|
|
|
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,
|
|
|
|
qr_code AS qrCode,
|
|
|
|
del_flag as delFlag,
|
|
|
|
del_flag AS delFlag,
|
|
|
|
hospital_id as hospitalId,
|
|
|
|
td.hospital_id AS hospitalId,
|
|
|
|
create_time as createTime,
|
|
|
|
th.`name` AS hospitalName,
|
|
|
|
update_time as updateTime
|
|
|
|
create_time AS createTime,
|
|
|
|
from
|
|
|
|
update_time AS updateTime
|
|
|
|
t_doctor
|
|
|
|
FROM
|
|
|
|
|
|
|
|
t_doctor td
|
|
|
|
|
|
|
|
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 DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
AND create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and
|
|
|
|
|
|
|
|
DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
AND name like concat('%', #{name}, '%')
|
|
|
|
AND name like concat('%', #{name}, '%')
|
|
|
|