修改人工随访代办列表查询
This commit is contained in:
parent
69d1a7fb82
commit
6d6ef3b94d
@ -33,27 +33,15 @@ public class ManualFollowUpDTO {
|
|||||||
@ApiModelProperty(value = "所属医院id")
|
@ApiModelProperty(value = "所属医院id")
|
||||||
private Long hospitalAgencyId;
|
private Long hospitalAgencyId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属医院名称")
|
|
||||||
private String hospitalAgencyName;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属院区id")
|
@ApiModelProperty(value = "所属院区id")
|
||||||
private Long campusAgencyId;
|
private Long campusAgencyId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属院区名称")
|
|
||||||
private String campusAgencyName;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属科室id")
|
@ApiModelProperty(value = "所属科室id")
|
||||||
private Long departmentId;
|
private Long departmentId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属科室名称")
|
|
||||||
private String departmentName;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属病区id")
|
@ApiModelProperty(value = "所属病区id")
|
||||||
private Long wardId;
|
private Long wardId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属病区名称")
|
|
||||||
private String wardName;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||||
private String visitMethod;
|
private String visitMethod;
|
||||||
|
|
||||||
|
|||||||
@ -136,23 +136,30 @@
|
|||||||
LEFT JOIN patient_visit_record pvr ON pi.patient_visit_record_id = pvr.id
|
LEFT JOIN patient_visit_record pvr ON pi.patient_visit_record_id = pvr.id
|
||||||
<where>
|
<where>
|
||||||
pi.del_flag = '0' AND spmrn.node_execute_status = 'UNEXECUTED'
|
pi.del_flag = '0' AND spmrn.node_execute_status = 'UNEXECUTED'
|
||||||
|
AND spmrn.task_type in ('PHONE_OUTBOUND','QUESTIONNAIRE_SCALE','ARTIFICIAL_FOLLOW_UP')
|
||||||
<if test="patientName != null and patientName != ''">
|
<if test="patientName != null and patientName != ''">
|
||||||
AND pi.patient_name = #{patientName}
|
AND pi.patient_name LIKE concat('%', #{patientName}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="patientPhone != null and patientPhone != ''">
|
<if test="patientPhone != null and patientPhone != ''">
|
||||||
AND pi.patient_phone = #{patientPhone}
|
AND pi.patient_phone LIKE concat('%', #{patientPhone}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="hospitalAgencyId != null">
|
<if test="hospitalAgencyId != null">
|
||||||
AND pi.hospital_agency_id = #{hospitalAgencyId}
|
AND pi.hospital_agency_id = #{hospitalAgencyId}
|
||||||
</if>
|
</if>
|
||||||
<if test="hospitalAgencyName != null and hospitalAgencyName != ''">
|
<if test="campusAgencyId != null">
|
||||||
AND pi.hospital_agency_name LIKE concat('%', #{hospitalAgencyName}, '%')
|
AND pi.campus_agency_id = #{campusAgencyId}
|
||||||
|
</if>
|
||||||
|
<if test="departmentId != null">
|
||||||
|
AND pi.department_id = #{departmentId}
|
||||||
|
</if>
|
||||||
|
<if test="wardId != null">
|
||||||
|
AND pi.ward_id = #{wardId}
|
||||||
</if>
|
</if>
|
||||||
<if test="visitMethod != null and visitMethod != ''">
|
<if test="visitMethod != null and visitMethod != ''">
|
||||||
AND pi.visit_method = #{visitMethod}
|
AND pi.visit_method = #{visitMethod}
|
||||||
</if>
|
</if>
|
||||||
<if test="visitSerialNumber != null and visitSerialNumber != ''">
|
<if test="visitSerialNumber != null and visitSerialNumber != ''">
|
||||||
AND pi.visit_serial_number = #{visitSerialNumber}
|
AND pi.visit_serial_number LIKE concat('%', #{visitSerialNumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="clinicalStartTime != null">
|
<if test="clinicalStartTime != null">
|
||||||
AND pi.visit_date >= #{clinicalStartTime}
|
AND pi.visit_date >= #{clinicalStartTime}
|
||||||
@ -179,7 +186,7 @@
|
|||||||
AND pi.attending_physician_id = #{attendingPhysicianId}
|
AND pi.attending_physician_id = #{attendingPhysicianId}
|
||||||
</if>
|
</if>
|
||||||
<if test="attendingPhysicianName != null and attendingPhysicianName != ''">
|
<if test="attendingPhysicianName != null and attendingPhysicianName != ''">
|
||||||
AND pi.attending_physician_name = #{attendingPhysicianName}
|
AND pi.attending_physician_name LIKE concat('%',#{attendingPhysicianName}, '%')
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user