就诊记录展示医院信息

master
gongzhenkun 2 years ago
parent 1ebce4a1df
commit ed9f5d64d9

@ -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;

@ -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
</sql>
<select id="selectHomePatientList" parameterType="TRecordResultReq" resultType="TRecordResp">

Loading…
Cancel
Save