From 8b6e5d6414656b9d3f837476063adad71a9f9e55 Mon Sep 17 00:00:00 2001
From: chenfei <18955928961@163.com>
Date: Thu, 11 Aug 2022 10:29:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B0=B1=E8=AF=8A=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95=E6=9F=A5=E8=AF=A2=E5=8C=BB=E7=94=9F=E5=A7=93=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ruoyi/system/domain/req/TRecordResultReq.java | 12 ++++++++++++
.../main/resources/mapper/system/TRecordMapper.xml | 1 +
2 files changed, 13 insertions(+)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/TRecordResultReq.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/TRecordResultReq.java
index a89157d..14732da 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/TRecordResultReq.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/TRecordResultReq.java
@@ -23,6 +23,8 @@ public class TRecordResultReq
private String identifier;
@ApiModelProperty("医生id")
private Long doctorId;
+ @ApiModelProperty("医生姓名")
+ private String doctorName;
@ApiModelProperty("医院id")
private Long hospitalId;
@@ -166,4 +168,14 @@ public class TRecordResultReq
{
this.endTime = endTime;
}
+
+ public String getDoctorName()
+ {
+ return doctorName;
+ }
+
+ public void setDoctorName(String doctorName)
+ {
+ this.doctorName = doctorName;
+ }
}
diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml
index 1da9734..8c6f682 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml
@@ -195,6 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and tr.doctor_id = #{doctorId}
and tr.hospital_id = #{hospitalId}
and tr.status = #{status}
+ and td.name like concat('%', #{doctorName}, '%')
and tp.age = #{age}
and tp.sex = #{sex}
and tp.identifier like concat('%', #{identifier}, '%')