调整诊断记录查询

master
chenfei 2 years ago
parent 7b044f6d6c
commit bc738fcc15

@ -17,9 +17,9 @@ public class TRecordResultReq
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
private Date createTime; private Date createTime;
//预约时间排序 //预约时间排序
private String doctorTime; private String doctorOder;
//首诊时间排序 //首诊时间排序
private String firstVisitTime; private String firstVisitOder;
private String status; private String status;
public String getName() public String getName()
@ -83,24 +83,24 @@ public class TRecordResultReq
this.status = status; this.status = status;
} }
public String getDoctorTime() public String getDoctorOder()
{ {
return doctorTime; return doctorOder;
} }
public void setDoctorTime(String doctorTime) public void setDoctorOder(String doctorOder)
{ {
this.doctorTime = doctorTime; this.doctorOder = doctorOder;
} }
public String getFirstVisitTime() public String getFirstVisitOder()
{ {
return firstVisitTime; return firstVisitOder;
} }
public void setFirstVisitTime(String firstVisitTime) public void setFirstVisitOder(String firstVisitOder)
{ {
this.firstVisitTime = firstVisitTime; this.firstVisitOder = firstVisitOder;
} }
public Date getCreateTime() public Date getCreateTime()

@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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="createTime !=null">and DATE_FORMAT(tp.create_time,'%Y-%m-%d') = #{createTime} </if> <if test="createTime !=null">and DATE_FORMAT(tp.create_time,'%Y-%m-%d') = #{createTime} </if>
<if test="doctorTime !=null and firstVisitTime!=null" >order by tr.create_time ${doctorTime}, tp.create_time ${firstVisitTime}</if> <if test="doctorTime !=null and firstVisitTime!=null" >order by tr.create_time ${doctorOder}, tp.create_time ${firstVisitOder}</if>
</where> </where>
</select> </select>

Loading…
Cancel
Save