修改人工随访代办处理,修改根据id查询服务内容接口
This commit is contained in:
parent
be597c2af3
commit
909f311f51
@ -89,5 +89,8 @@ public class ManualFollowUpDTO {
|
|||||||
@ApiModelProperty(value = "主治医生姓名")
|
@ApiModelProperty(value = "主治医生姓名")
|
||||||
private String attendingPhysicianName;
|
private String attendingPhysicianName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "节点任务执行状态,已执行:EXECUTED,未执行:UNEXECUTED")
|
||||||
|
private String nodeExecuteStatus;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,9 @@ public class PatientQuestionSubmitResultDTO extends PatientQuestionSubmitResult
|
|||||||
@ApiModelProperty(value = "任务处理信息")
|
@ApiModelProperty(value = "任务处理信息")
|
||||||
private String routeHandleRemark;
|
private String routeHandleRemark;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "患者就诊记录基本信息表id")
|
||||||
|
private Long visitRecordId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 患者问卷题目提交结果信息
|
* 患者问卷题目提交结果信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -69,4 +69,11 @@ public class ServiceWayContentEditDTO {
|
|||||||
@ApiModelProperty(value = "服务频次数字结束值")
|
@ApiModelProperty(value = "服务频次数字结束值")
|
||||||
@Excel(name = "服务频次数字结束值")
|
@Excel(name = "服务频次数字结束值")
|
||||||
private Integer serviceFrequencyEnd;
|
private Integer serviceFrequencyEnd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "排序")
|
||||||
|
@Excel(name = "排序")
|
||||||
|
private Integer serviceSort;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,7 @@ public class ServiceWayContentServiceImpl implements IServiceWayContentService {
|
|||||||
serviceFrequency.setServiceFrequencyEnd(serviceWayContentAddDTO.getServiceFrequencyEnd());
|
serviceFrequency.setServiceFrequencyEnd(serviceWayContentAddDTO.getServiceFrequencyEnd());
|
||||||
serviceFrequency.setCreateBy(username);
|
serviceFrequency.setCreateBy(username);
|
||||||
serviceFrequency.setCreateTime(LocalDateTime.now());
|
serviceFrequency.setCreateTime(LocalDateTime.now());
|
||||||
|
serviceFrequency.setServiceSort(serviceWayContentAddDTO.getServiceSort());
|
||||||
if (serviceWayContentMapper.insertServiceWayContent(serviceFrequency) <= 0) {
|
if (serviceWayContentMapper.insertServiceWayContent(serviceFrequency) <= 0) {
|
||||||
throw new ServiceException("新增服务频次失败");
|
throw new ServiceException("新增服务频次失败");
|
||||||
}
|
}
|
||||||
@ -119,6 +120,7 @@ public class ServiceWayContentServiceImpl implements IServiceWayContentService {
|
|||||||
serviceFrequency.setCreateBy(username);
|
serviceFrequency.setCreateBy(username);
|
||||||
serviceFrequency.setCreateTime(LocalDateTime.now());
|
serviceFrequency.setCreateTime(LocalDateTime.now());
|
||||||
serviceFrequency.setServiceSort(serviceWayContentAddDTO.getServiceSort());
|
serviceFrequency.setServiceSort(serviceWayContentAddDTO.getServiceSort());
|
||||||
|
serviceFrequency.setServiceSort(serviceWayContentAddDTO.getServiceSort());
|
||||||
if (serviceWayContentMapper.insertServiceWayContent(serviceFrequency) <= 0) {
|
if (serviceWayContentMapper.insertServiceWayContent(serviceFrequency) <= 0) {
|
||||||
throw new ServiceException("新增服务频次失败");
|
throw new ServiceException("新增服务频次失败");
|
||||||
}
|
}
|
||||||
@ -192,6 +194,7 @@ public class ServiceWayContentServiceImpl implements IServiceWayContentService {
|
|||||||
currentFrequency.setServiceFrequencyText(serviceWayContentEditDTO.getServiceFrequencyText());
|
currentFrequency.setServiceFrequencyText(serviceWayContentEditDTO.getServiceFrequencyText());
|
||||||
currentFrequency.setServiceFrequencyStart(serviceWayContentEditDTO.getServiceFrequencyStart());
|
currentFrequency.setServiceFrequencyStart(serviceWayContentEditDTO.getServiceFrequencyStart());
|
||||||
currentFrequency.setServiceFrequencyEnd(serviceWayContentEditDTO.getServiceFrequencyEnd());
|
currentFrequency.setServiceFrequencyEnd(serviceWayContentEditDTO.getServiceFrequencyEnd());
|
||||||
|
currentFrequency.setServiceSort(serviceWayContentEditDTO.getServiceSort());
|
||||||
currentFrequency.setUpdateBy(username);
|
currentFrequency.setUpdateBy(username);
|
||||||
currentFrequency.setUpdateTime(LocalDateTime.now());
|
currentFrequency.setUpdateTime(LocalDateTime.now());
|
||||||
|
|
||||||
|
|||||||
@ -114,5 +114,11 @@ public class ManualFollowUpVO {
|
|||||||
@ApiModelProperty(value = "模板id")
|
@ApiModelProperty(value = "模板id")
|
||||||
private String templateId;
|
private String templateId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "节点任务执行状态,已执行:EXECUTED,未执行:UNEXECUTED")
|
||||||
|
private String nodeExecuteStatus;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "任务执行记录id")
|
||||||
|
private Long taskExecuteRecordId;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,4 +48,9 @@ public class ServiceFrequencyVO {
|
|||||||
@ApiModelProperty(value = "服务频次数字结束值")
|
@ApiModelProperty(value = "服务频次数字结束值")
|
||||||
@Excel(name = "服务频次数字结束值")
|
@Excel(name = "服务频次数字结束值")
|
||||||
private Integer serviceFrequencyEnd;
|
private Integer serviceFrequencyEnd;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "服务频次排序")
|
||||||
|
private Integer serviceFrequencySort;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -67,4 +67,7 @@ public class ServiceWayContentAndFrequencyVO {
|
|||||||
@ApiModelProperty(value = "服务频次数字结束值")
|
@ApiModelProperty(value = "服务频次数字结束值")
|
||||||
@Excel(name = "服务频次数字结束值")
|
@Excel(name = "服务频次数字结束值")
|
||||||
private Integer serviceFrequencyEnd;
|
private Integer serviceFrequencyEnd;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "服务频次排序")
|
||||||
|
private Integer serviceFrequencySort;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,6 +77,7 @@
|
|||||||
#{fieldMark}
|
#{fieldMark}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectLabelFieldContentById" parameterType="Long"
|
<select id="selectLabelFieldContentById" parameterType="Long"
|
||||||
|
|||||||
@ -57,6 +57,7 @@
|
|||||||
#{fieldRemark}
|
#{fieldRemark}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
<result column="service_frequency_text" property="serviceFrequencyText"/>
|
<result column="service_frequency_text" property="serviceFrequencyText"/>
|
||||||
<result column="service_frequency_start" property="serviceFrequencyStart"/>
|
<result column="service_frequency_start" property="serviceFrequencyStart"/>
|
||||||
<result column="service_frequency_end" property="serviceFrequencyEnd"/>
|
<result column="service_frequency_end" property="serviceFrequencyEnd"/>
|
||||||
|
<result column="serviceFrequencySort" property="serviceFrequencySort"/>
|
||||||
</collection>
|
</collection>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@ -155,7 +156,8 @@
|
|||||||
swc2.service_frequency_type,
|
swc2.service_frequency_type,
|
||||||
swc2.service_frequency_text,
|
swc2.service_frequency_text,
|
||||||
swc2.service_frequency_start,
|
swc2.service_frequency_start,
|
||||||
swc2.service_frequency_end
|
swc2.service_frequency_end,
|
||||||
|
swc2.service_sort AS 'serviceFrequencySort'
|
||||||
FROM service_way_content swc1
|
FROM service_way_content swc1
|
||||||
JOIN service_way_content swc2 on swc1.id = swc2.service_content_id
|
JOIN service_way_content swc2 on swc1.id = swc2.service_content_id
|
||||||
<where>
|
<where>
|
||||||
@ -185,7 +187,8 @@
|
|||||||
swc1.service_frequency_type,
|
swc1.service_frequency_type,
|
||||||
swc1.service_frequency_text,
|
swc1.service_frequency_text,
|
||||||
swc1.service_frequency_start,
|
swc1.service_frequency_start,
|
||||||
swc1.service_frequency_end
|
swc1.service_frequency_end,
|
||||||
|
swc1.service_sort AS 'serviceFrequencySort'
|
||||||
FROM service_way_content swc1
|
FROM service_way_content swc1
|
||||||
LEFT JOIN service_way_content swc2 ON swc1.service_content_id = swc2.id
|
LEFT JOIN service_way_content swc2 ON swc1.service_content_id = swc2.id
|
||||||
WHERE swc1.service_type = 'SERVICE_FREQUENCY'
|
WHERE swc1.service_type = 'SERVICE_FREQUENCY'
|
||||||
|
|||||||
@ -318,6 +318,7 @@
|
|||||||
WHEN spmr.suit_range = 'OUTPATIENT_SERVICE_DISCHARGE' AND pi.visit_date IS NOT NULL THEN 'OUTPATIENT_SERVICE'
|
WHEN spmr.suit_range = 'OUTPATIENT_SERVICE_DISCHARGE' AND pi.visit_date IS NOT NULL THEN 'OUTPATIENT_SERVICE'
|
||||||
WHEN spmr.suit_range = 'OUTPATIENT_SERVICE_DISCHARGE' AND pi.discharge_time IS NOT NULL THEN 'DISCHARGE'
|
WHEN spmr.suit_range = 'OUTPATIENT_SERVICE_DISCHARGE' AND pi.discharge_time IS NOT NULL THEN 'DISCHARGE'
|
||||||
END AS 'suitRange',
|
END AS 'suitRange',
|
||||||
|
pter.id AS 'taskExecuteRecordId',
|
||||||
pter.execute_time AS 'executeTime',
|
pter.execute_time AS 'executeTime',
|
||||||
spmr.id AS 'manageRouteId',
|
spmr.id AS 'manageRouteId',
|
||||||
spmrn.id AS 'manageRouteNodeId',
|
spmrn.id AS 'manageRouteNodeId',
|
||||||
@ -330,10 +331,11 @@
|
|||||||
WHEN spmrn.task_type = 'ARTIFICIAL_FOLLOW_UP' THEN spmrn.follow_template_name
|
WHEN spmrn.task_type = 'ARTIFICIAL_FOLLOW_UP' THEN spmrn.follow_template_name
|
||||||
END AS 'templateName',
|
END AS 'templateName',
|
||||||
CASE
|
CASE
|
||||||
WHEN spmrn.task_type = 'PHONE_OUTBOUND' THEN spmrn.phone_template_id
|
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 = 'QUESTIONNAIRE_SCALE' THEN spmrn.question_info_id
|
||||||
WHEN spmrn.task_type = 'ARTIFICIAL_FOLLOW_UP' THEN spmrn.follow_template_id
|
WHEN spmrn.task_type = 'ARTIFICIAL_FOLLOW_UP' THEN spmrn.follow_template_id
|
||||||
END AS 'templateId'
|
END AS 'templateId',
|
||||||
|
spmrn.node_execute_status
|
||||||
FROM
|
FROM
|
||||||
sign_patient_manage_route spmr
|
sign_patient_manage_route spmr
|
||||||
LEFT JOIN sign_patient_manage_route_node spmrn ON spmr.id = spmrn.manage_route_id
|
LEFT JOIN sign_patient_manage_route_node spmrn ON spmr.id = spmrn.manage_route_id
|
||||||
@ -342,7 +344,7 @@
|
|||||||
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 spmr.task_create_type = 'MANUAL_CREATE'
|
pi.del_flag = '0' AND spmr.task_create_type = 'MANUAL_CREATE'
|
||||||
AND spmrn.node_execute_status = 'UNEXECUTED'
|
AND spmrn.route_check_status = 'AGREE'
|
||||||
AND spmrn.task_type in ('PHONE_OUTBOUND','QUESTIONNAIRE_SCALE','ARTIFICIAL_FOLLOW_UP')
|
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 LIKE concat('%', #{patientName}, '%')
|
AND pi.patient_name LIKE concat('%', #{patientName}, '%')
|
||||||
@ -404,7 +406,11 @@
|
|||||||
<if test="attendingPhysicianName != null and attendingPhysicianName != ''">
|
<if test="attendingPhysicianName != null and attendingPhysicianName != ''">
|
||||||
AND pi.attending_physician_name LIKE concat('%',#{attendingPhysicianName}, '%')
|
AND pi.attending_physician_name LIKE concat('%',#{attendingPhysicianName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="nodeExecuteStatus != null ">
|
||||||
|
AND spmrn.node_execute_status = #{nodeExecuteStatus}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by spmr.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectFollowPatientInfo"
|
<select id="selectFollowPatientInfo"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user