Merge branch '0418_小程序开发' of http://182.92.166.109:3000/zhuangyuanke/PostDischargePatientManage into 0418_小程序开发
This commit is contained in:
commit
a86c961b7f
@ -67,7 +67,7 @@ public interface HomePageService {
|
|||||||
List<PatientTaskExecuteRecord> selectPatientTaskExecuteRecord(Long residentId);
|
List<PatientTaskExecuteRecord> selectPatientTaskExecuteRecord(Long residentId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 已完成满意度问卷
|
* 满意度问卷
|
||||||
*
|
*
|
||||||
* @param residentId 居民信息
|
* @param residentId 居民信息
|
||||||
* @return SatisfactionQuestionnaire
|
* @return SatisfactionQuestionnaire
|
||||||
|
|||||||
@ -182,7 +182,7 @@ public class HomePageServiceImpl implements HomePageService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 人工随访代办处理
|
* 小程序问卷提交
|
||||||
*
|
*
|
||||||
* @param dto 患者问卷提交结果信息表DTO
|
* @param dto 患者问卷提交结果信息表DTO
|
||||||
* @return 结果
|
* @return 结果
|
||||||
|
|||||||
@ -39,4 +39,9 @@ public class SatisfactionQuestionnaire {
|
|||||||
* 患者问卷id
|
* 患者问卷id
|
||||||
*/
|
*/
|
||||||
private Long patientQuestionSubmitResultId;
|
private Long patientQuestionSubmitResultId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 签约患者管理任务节点表id
|
||||||
|
*/
|
||||||
|
private Long manageRouteNodeId;
|
||||||
}
|
}
|
||||||
@ -73,10 +73,12 @@
|
|||||||
SELECT spmrn.question_info_id templateId,
|
SELECT spmrn.question_info_id templateId,
|
||||||
spmrn.questionnaire_name,
|
spmrn.questionnaire_name,
|
||||||
pqsr.create_time executeTime,
|
pqsr.create_time executeTime,
|
||||||
|
spmrn.id manageRouteNodeId,
|
||||||
(SELECT id
|
(SELECT id
|
||||||
FROM patient_question_submit_result
|
FROM patient_question_submit_result pqsr2
|
||||||
WHERE resident_id = #{residentId}
|
WHERE pqsr2.resident_id = #{residentId}
|
||||||
AND question_info_id = spmrn.question_info_id) patientQuestionSubmitResultId
|
AND pqsr2.question_info_id = spmrn.question_info_id
|
||||||
|
AND pqsr2.manage_route_node_id = spmrn.id ) patientQuestionSubmitResultId
|
||||||
from sign_patient_manage_route_node spmrn
|
from sign_patient_manage_route_node spmrn
|
||||||
LEFT JOIN sign_patient_manage_route spmr on spmr.id = spmrn.manage_route_id
|
LEFT JOIN sign_patient_manage_route spmr on spmr.id = spmrn.manage_route_id
|
||||||
LEFT JOIN patient_info pi ON pi.id = spmr.patient_id
|
LEFT JOIN patient_info pi ON pi.id = spmr.patient_id
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
package com.xinelu.quartz.service.impl;
|
package com.xinelu.quartz.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.xinelu.common.config.WeChatAppletChatConfig;
|
import com.xinelu.common.config.WeChatAppletChatConfig;
|
||||||
import com.xinelu.common.enums.PatientTypeEnum;
|
import com.xinelu.common.enums.PatientTypeEnum;
|
||||||
import com.xinelu.common.enums.RouteNodeNameEnum;
|
import com.xinelu.common.enums.RouteNodeNameEnum;
|
||||||
import com.xinelu.common.enums.SubscribeStatusEnum;
|
import com.xinelu.common.enums.SubscribeStatusEnum;
|
||||||
|
import com.xinelu.mobile.domain.TemplateContent;
|
||||||
import com.xinelu.mobile.mapper.homepage.HomePageMapper;
|
import com.xinelu.mobile.mapper.homepage.HomePageMapper;
|
||||||
import com.xinelu.mobile.utils.WeChatOfficialAccountUtils;
|
import com.xinelu.mobile.utils.WeChatOfficialAccountUtils;
|
||||||
import com.xinelu.mobile.vo.wechatofficialaccountcallback.PatientVO;
|
import com.xinelu.mobile.vo.wechatofficialaccountcallback.PatientVO;
|
||||||
@ -94,6 +96,11 @@ public class subscribeTaskServiceImpl implements SubscribeTaskService {
|
|||||||
List<Long> signPatientManageRouteNodeIds = new ArrayList<>();
|
List<Long> signPatientManageRouteNodeIds = new ArrayList<>();
|
||||||
//发送
|
//发送
|
||||||
for (PatientVO patientVO : patientVOS) {
|
for (PatientVO patientVO : patientVOS) {
|
||||||
|
try {
|
||||||
|
JSON.parseArray(patientVO.getAppletNodeContent(), TemplateContent.class);
|
||||||
|
} catch (Exception e) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Integer integer = weChatOfficialAccountUtils.sendAppletTemplateMessage(patientVO);
|
Integer integer = weChatOfficialAccountUtils.sendAppletTemplateMessage(patientVO);
|
||||||
if (integer == 0) {
|
if (integer == 0) {
|
||||||
signPatientManageRouteNodeIds.add(patientVO.getSignPatientManageRouteNodeId());
|
signPatientManageRouteNodeIds.add(patientVO.getSignPatientManageRouteNodeId());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user