From b203248251e5f3c5c68eaf15b56823ed1348e904 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Tue, 15 Nov 2022 11:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E4=BF=A1=E6=81=AF=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8C=BB=E9=99=A2=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resp/PcTPatientQueryByPageResp.java | 29 +++++++++++++++++-- .../mapper/system/TPatientMapper.xml | 2 ++ 2 files changed, 28 insertions(+), 3 deletions(-) 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