From ed9f5d64d9e8397b54c4b9792843f607bf6b68b2 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Tue, 15 Nov 2022 11:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E8=AF=8A=E8=AE=B0=E5=BD=95=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 --- .../com/ruoyi/system/domain/resp/TRecordResp.java | 12 ++++++++++++ .../main/resources/mapper/system/TRecordMapper.xml | 2 ++ 2 files changed, 14 insertions(+) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java index ebd40e0..bfffe7f 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java @@ -31,6 +31,10 @@ public class TRecordResp @ApiModelProperty("医生名称") private String doctorName; + @Excel(name = "医院名称") + @ApiModelProperty("医院名称") + private String hospitalName; + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") @ApiModelProperty("用户性别") private String sex; @@ -115,6 +119,14 @@ public class TRecordResp @ApiModelProperty("ai结果修改时间") private Date aiResultModifyTime; + 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/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index fd84008..b09b7c9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -91,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" td.NAME AS doctorName, tp.identifier, tp.NAME AS patientName, + th.`name` AS hospitalName, tp.sex, tp.age, tp.disease, @@ -99,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" t_record tr LEFT JOIN t_doctor td ON tr.doctor_id = td.id LEFT JOIN t_patient tp ON tr.patient_id = tp.id + LEFT JOIN t_hospital th ON tr.hospital_id = th.id