患者信息展示医院信息

master
gongzhenkun 2 years ago
parent ed9f5d64d9
commit b203248251

@ -97,9 +97,32 @@ public class PcTPatientQueryByPageResp {
@ApiModelProperty("诊断医生") @ApiModelProperty("诊断医生")
@Excel(name = "诊断医生") @Excel(name = "诊断医生")
private String doctorName; private String doctorName;
//
// /** 医院ID */
// List<TRecord> recordList; @ApiModelProperty("医院ID")
@Excel(name = "医院ID")
private Long hospitalId;
/** 医院名称 */
@ApiModelProperty("医院名称")
@Excel(name = "医院名称")
private String hospitalName;
public Long getHospitalId() {
return hospitalId;
}
public void setHospitalId(Long hospitalId) {
this.hospitalId = hospitalId;
}
public String getHospitalName() {
return hospitalName;
}
public void setHospitalName(String hospitalName) {
this.hospitalName = hospitalName;
}
public Long getId() { public Long getId() {
return id; return id;

@ -144,6 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.create_time as createTime, a.create_time as createTime,
a.update_time as updateTime, a.update_time as updateTime,
a.del_flag as delFlag, a.del_flag as delFlag,
c.id AS hospitalId,
c.`name` AS hospitalName,
d.`name` as doctorName d.`name` as doctorName
from t_patient a left join t_patient_hospital_doctor b on a.id = b.patient_id from t_patient a left join t_patient_hospital_doctor b on a.id = b.patient_id
left join t_hospital c on b.hospital_id = c.id left join t_hospital c on b.hospital_id = c.id

Loading…
Cancel
Save