修改就诊记录查询字段

master
chenfei 2 years ago
parent 3a89e0d94e
commit 733423bc14

@ -26,7 +26,8 @@ public class TRecordResultReq
@ApiModelProperty("医院id")
private Long hospitalId;
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM")
@ApiModelProperty("初诊日期查询 到月份")
private Date createTime;
@ApiModelProperty("注册日期排序(必传)asc 正序desc 倒序")
@ -38,10 +39,10 @@ public class TRecordResultReq
@ApiModelProperty("状态")
private String status;
@ApiModelProperty("诊日期开始时间")
@ApiModelProperty("诊日期开始时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
@ApiModelProperty("诊日期结束时间")
@ApiModelProperty("诊日期结束时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;

@ -198,9 +198,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="age !=null">and tp.age = #{age} </if>
<if test="sex !=null">and tp.sex = #{sex} </if>
<if test="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if>
<if test="createTime != null">
and DATE_FORMAT(tp.create_time,'%Y-%m') = DATE_FORMAT(#{createTime},'%Y-%m')
</if>
<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 tr.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
</if>
<if test="startTime != null and endTime != null"></if>
<if test="doctorOder !=null and firstVisitOder!=null" >order by tr.create_time ${doctorOder}, tp.create_time ${firstVisitOder}</if>
</where>
</select>

Loading…
Cancel
Save