健康日历
This commit is contained in:
parent
5e51aaf1f9
commit
a41d6eb011
@ -14,6 +14,16 @@ import java.time.LocalDate;
|
|||||||
@Data
|
@Data
|
||||||
public class MyFollowUpVO {
|
public class MyFollowUpVO {
|
||||||
|
|
||||||
|
private Long patientId;
|
||||||
|
|
||||||
|
private String patientName;
|
||||||
|
|
||||||
|
private Long manageRouteId;
|
||||||
|
|
||||||
|
private String manageRouteName;
|
||||||
|
|
||||||
|
private String manageRouteNodeName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户id
|
* 用户id
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -6,7 +6,12 @@
|
|||||||
|
|
||||||
<select id="selectManageRouteNode" resultType="com.xinelu.mobile.vo.myfollowup.MyFollowUpVO">
|
<select id="selectManageRouteNode" resultType="com.xinelu.mobile.vo.myfollowup.MyFollowUpVO">
|
||||||
select
|
select
|
||||||
|
pi.id patientId,
|
||||||
|
pi.patient_name,
|
||||||
|
spmr.id manageRouteId,
|
||||||
|
spmr.route_name manageRouteName,
|
||||||
spmrn.id manageRouteNodeId,
|
spmrn.id manageRouteNodeId,
|
||||||
|
spmrn.route_node_name manageRouteNodeName,
|
||||||
spmrn.task_type,
|
spmrn.task_type,
|
||||||
spmrn.route_node_name,
|
spmrn.route_node_name,
|
||||||
IFNULL( spmrn.route_node_day,0) routeNodeDay,
|
IFNULL( spmrn.route_node_day,0) routeNodeDay,
|
||||||
@ -23,6 +28,7 @@
|
|||||||
LEFT JOIN sign_patient_manage_route_node spmrn ON spmrn.manage_route_id = spmr.id
|
LEFT JOIN sign_patient_manage_route_node spmrn ON spmrn.manage_route_id = spmr.id
|
||||||
LEFT JOIN patient_task_execute_record pter ON pter.manage_route_node_id = spmrn.id
|
LEFT JOIN patient_task_execute_record pter ON pter.manage_route_node_id = spmrn.id
|
||||||
<where>
|
<where>
|
||||||
|
spmrn.task_type in('PHONE_OUTBOUND','QUESTIONNAIRE_SCALE','ARTIFICIAL_FOLLOW_UP')
|
||||||
<if test="residentId != null ">
|
<if test="residentId != null ">
|
||||||
and pi.resident_id = #{residentId}
|
and pi.resident_id = #{residentId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user