소스 검색

update:患者信息增加手术时间检索条件

wangzl 5 달 전
부모
커밋
be1b861b66

+ 3 - 0
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/common/dto/BizPatientQueryDTO.java

@@ -21,4 +21,7 @@ public class BizPatientQueryDTO implements Serializable {
 
     @ApiModelProperty("查询条件")
     private String condition;
+
+    @ApiModelProperty("手术时间")
+    private List<Date> clinicTime;
 }

+ 6 - 0
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizPatientMapper.xml

@@ -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 &gt;= #{query.timeRange[0]}
+            </if>
+            <if test="query.timeRange != null and query.timeRange.size() > 1">
+                and bcr.clinic_start_time &lt;= #{query.timeRange[1]}
+            </if>
         </where>
 
     </select>