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}, '%')