From fb636fc1e1a1078e68b8680669a13ec2d312056d Mon Sep 17 00:00:00 2001
From: chenfei <18955928961@163.com>
Date: Wed, 10 Aug 2022 10:15:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E8=AF=8A=E8=AE=B0=E5=BD=95=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E6=A1=A3=E6=A1=88=E5=8F=B7=E6=A8=A1=E7=B3=8A=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2?=
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 a2e9ff0..6ba4492 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
@@ -19,6 +19,8 @@ public class TRecordResultReq
private String sex;
@ApiModelProperty("患者年龄")
private Integer age;
+ @ApiModelProperty("档案号")
+ private String identifier;
@ApiModelProperty("医生id")
private Long doctorId;
@ApiModelProperty("医院id")
@@ -73,6 +75,16 @@ public class TRecordResultReq
this.age = age;
}
+ public String getIdentifier()
+ {
+ return identifier;
+ }
+
+ public void setIdentifier(String identifier)
+ {
+ this.identifier = identifier;
+ }
+
public Long getDoctorId()
{
return doctorId;
diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml
index db84bc0..f1b2555 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml
@@ -167,6 +167,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and tr.status = #{status}
and tp.age = #{age}
and tp.sex = #{sex}
+ and tp.identifier like concat('%', #{identifier}, '%')
AND tp.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')