就诊记录增加档案号模糊搜索

master
chenfei 2 years ago
parent e12b476d0e
commit fb636fc1e1

@ -19,6 +19,8 @@ public class TRecordResultReq
private String sex; private String sex;
@ApiModelProperty("患者年龄") @ApiModelProperty("患者年龄")
private Integer age; private Integer age;
@ApiModelProperty("档案号")
private String identifier;
@ApiModelProperty("医生id") @ApiModelProperty("医生id")
private Long doctorId; private Long doctorId;
@ApiModelProperty("医院id") @ApiModelProperty("医院id")
@ -73,6 +75,16 @@ public class TRecordResultReq
this.age = age; this.age = age;
} }
public String getIdentifier()
{
return identifier;
}
public void setIdentifier(String identifier)
{
this.identifier = identifier;
}
public Long getDoctorId() public Long getDoctorId()
{ {
return doctorId; return doctorId;

@ -167,6 +167,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null and status != ''"> and tr.status = #{status}</if> <if test="status != null and status != ''"> and tr.status = #{status}</if>
<if test="age !=null">and tp.age = #{age} </if> <if test="age !=null">and tp.age = #{age} </if>
<if test="sex !=null">and tp.sex = #{sex} </if> <if test="sex !=null">and tp.sex = #{sex} </if>
<if test="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if>
<if test="startTime != null and endTime != null"> <if test="startTime != null and endTime != null">
AND tp.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s') AND tp.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
</if> </if>

Loading…
Cancel
Save