diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/PcTPatientQueryByPageResp.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/PcTPatientQueryByPageResp.java index 4702790..71f5935 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/PcTPatientQueryByPageResp.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/PcTPatientQueryByPageResp.java @@ -97,9 +97,32 @@ public class PcTPatientQueryByPageResp { @ApiModelProperty("诊断医生") @Excel(name = "诊断医生") private String doctorName; -// -// -// List recordList; + + /** 医院ID */ + @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() { return id; diff --git a/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml index ab01978..6782bfe 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TPatientMapper.xml @@ -144,6 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.create_time as createTime, a.update_time as updateTime, a.del_flag as delFlag, + c.id AS hospitalId, + c.`name` AS hospitalName, d.`name` as doctorName 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