就诊列表添加是否删除查询

master
chenfei 2 years ago
parent 1f992472c8
commit 3947391c30

@ -48,6 +48,9 @@ public class TRecordResultReq
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String endTime; private String endTime;
@ApiModelProperty("是否查看删除状态 默认null不查看,1为查看全部")
private String delFlag;
public String getName() public String getName()
{ {
return name; return name;
@ -178,4 +181,14 @@ public class TRecordResultReq
{ {
this.doctorName = doctorName; this.doctorName = doctorName;
} }
public String getDelFlag()
{
return delFlag;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
} }

@ -199,6 +199,9 @@ 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="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if> <if test="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if>
<if test="delFlag == null">
and td.del_flag = '0' and tp.del_flag = '0'
</if>
<if test="createTime != null"> <if test="createTime != null">
and DATE_FORMAT(tp.create_time,'%Y-%m') = DATE_FORMAT(#{createTime},'%Y-%m') and DATE_FORMAT(tp.create_time,'%Y-%m') = DATE_FORMAT(#{createTime},'%Y-%m')
</if> </if>

Loading…
Cancel
Save