@@ -21,4 +21,7 @@ public class BizPatientQueryDTO implements Serializable {
@ApiModelProperty("查询条件")
private String condition;
+
+ @ApiModelProperty("手术时间")
+ private List<Date> clinicTime;
}
@@ -75,6 +75,12 @@
<if test="query.condition != null and query.condition != ''">
and bcr.patient_name like concat('%',#{query.condition,jdbcType=VARCHAR},'%')
</if>
+ <if test="query.timeRange != null and query.timeRange.size() > 0">
+ and bcr.clinic_start_time >= #{query.timeRange[0]}
+ </if>
+ <if test="query.timeRange != null and query.timeRange.size() > 1">
+ and bcr.clinic_start_time <= #{query.timeRange[1]}
</where>
</select>