医生列表展示医院信息

master
gongzhenkun 2 years ago
parent b203248251
commit 92449be992

@ -76,6 +76,10 @@ public class PcTDoctorQueryByPageResp {
@ApiModelProperty("医院id") @ApiModelProperty("医院id")
private Long hospitalId; private Long hospitalId;
/** 医院 */
@ApiModelProperty("医院名称")
private String hospitalName;
/** 删除标志0代表存在 2代表删除 */ /** 删除标志0代表存在 2代表删除 */
@ApiModelProperty("删除标志0代表存在 2代表删除 ") @ApiModelProperty("删除标志0代表存在 2代表删除 ")
private String delFlag; private String delFlag;
@ -105,6 +109,14 @@ public class PcTDoctorQueryByPageResp {
@Excel(name = "诊断次数") @Excel(name = "诊断次数")
private int countRecords; private int countRecords;
public String getHospitalName() {
return hospitalName;
}
public void setHospitalName(String hospitalName) {
this.hospitalName = hospitalName;
}
public int getCountRecords() { public int getCountRecords() {
return countRecords; return countRecords;
} }

@ -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}, '%')

Loading…
Cancel
Save