修改就诊记录查询医生姓名

master
chenfei 2 years ago
parent 733423bc14
commit 8b6e5d6414

@ -23,6 +23,8 @@ public class TRecordResultReq
private String identifier; private String identifier;
@ApiModelProperty("医生id") @ApiModelProperty("医生id")
private Long doctorId; private Long doctorId;
@ApiModelProperty("医生姓名")
private String doctorName;
@ApiModelProperty("医院id") @ApiModelProperty("医院id")
private Long hospitalId; private Long hospitalId;
@ -166,4 +168,14 @@ public class TRecordResultReq
{ {
this.endTime = endTime; this.endTime = endTime;
} }
public String getDoctorName()
{
return doctorName;
}
public void setDoctorName(String doctorName)
{
this.doctorName = doctorName;
}
} }

@ -195,6 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="doctorId != null "> and tr.doctor_id = #{doctorId}</if> <if test="doctorId != null "> and tr.doctor_id = #{doctorId}</if>
<if test="hospitalId != null "> and tr.hospital_id = #{hospitalId}</if> <if test="hospitalId != null "> and tr.hospital_id = #{hospitalId}</if>
<if test="status != null and status != ''"> and tr.status = #{status}</if> <if test="status != null and status != ''"> and tr.status = #{status}</if>
<if test="doctorName != null and doctorName != ''"> and td.name like concat('%', #{doctorName}, '%')</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="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if>

Loading…
Cancel
Save