修改任务管理查询列表
This commit is contained in:
parent
b66a7a8ad8
commit
c1d3c5e330
@ -3,8 +3,10 @@ package com.xinelu.manage.vo.patienttaskexecuterecord;
|
|||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
import com.xinelu.manage.domain.patienttaskexecuterecord.PatientTaskExecuteRecord;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
@ -102,4 +104,16 @@ public class PatientTaskExecuteRecordVO extends PatientTaskExecuteRecord {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "手术记录")
|
@ApiModelProperty(value = "手术记录")
|
||||||
private String surgicalRecord;
|
private String surgicalRecord;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "任务类型,电话外呼:PHONE_OUTBOUND,问卷量表:QUESTIONNAIRE_SCALE,宣教文章:PROPAGANDA_ARTICLE,文字提醒:TEXT_REMIND,人工随访:ARTIFICIAL_FOLLOW_UP")
|
||||||
|
private String taskType;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "模板id")
|
||||||
|
private String templateId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "文字提醒内容(任务类型为文字提醒使用)")
|
||||||
|
private String textRemindContent;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -111,9 +111,18 @@
|
|||||||
pi.admission_time,
|
pi.admission_time,
|
||||||
pi.discharge_time,
|
pi.discharge_time,
|
||||||
pi.in_hospital_number,
|
pi.in_hospital_number,
|
||||||
pi.patient_phone
|
pi.patient_phone,
|
||||||
|
spmrn.task_type,
|
||||||
|
CASE
|
||||||
|
WHEN spmrn.task_type = 'PHONE_OUTBOUND' THEN spmrn.phone_id
|
||||||
|
WHEN spmrn.task_type = 'QUESTIONNAIRE_SCALE' THEN spmrn.question_info_id
|
||||||
|
WHEN spmrn.task_type = 'ARTIFICIAL_FOLLOW_UP' THEN spmrn.follow_template_id
|
||||||
|
WHEN spmrn.task_type = 'PROPAGANDA_ARTICLE' THEN spmrn.propaganda_info_id
|
||||||
|
END AS 'templateId',
|
||||||
|
IF(spmrn.task_type ='TEXT_REMIND',spmrn.text_remind_content,NULL) AS textRemindContent
|
||||||
from patient_task_execute_record pter
|
from patient_task_execute_record pter
|
||||||
LEFT JOIN patient_info pi ON pi.id = pter.patient_id
|
LEFT JOIN patient_info pi ON pi.id = pter.patient_id
|
||||||
|
LEFT JOIN sign_patient_manage_route_node spmrn ON pter.manage_route_node_id = spmrn.id
|
||||||
where pi.del_flag = 0
|
where pi.del_flag = 0
|
||||||
<if test="patientName != null and patientName != ''">
|
<if test="patientName != null and patientName != ''">
|
||||||
and pi.patient_name = #{patientName}
|
and pi.patient_name = #{patientName}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user