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')