修改生成任务。

This commit is contained in:
haown 2024-07-12 11:09:55 +08:00
parent 19087bbc31
commit 8deb0213fd

View File

@ -657,31 +657,33 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
List<SignPatientManageRouteNode> manageNodeList = signPatientManageRouteNodeMapper.selectNodesByManageIds(manageRouteIds);
// 根据node去替换模板信息
manageNodeList.forEach(manageNode -> {
switch(manageNode.getTaskType()) {
// 电话外呼--话术/问卷只替换话术
case TaskNodeTypeConstants.PHONE_OUTBOUND:
if (manageNode.getPhoneId() != null) {
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(manageNode.getPhoneId());
if (ObjectUtils.isNotEmpty(scriptInfo)) {
// 话术库json内容替换
manageNode.setPhoneNodeContent(getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList));
if (StringUtils.isNotBlank(manageNode.getTaskNodeType())) {
switch(manageNode.getTaskNodeType()) {
// 电话外呼--话术/问卷只替换话术
case TaskNodeTypeConstants.PHONE_OUTBOUND:
if (manageNode.getPhoneId() != null) {
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(manageNode.getPhoneId());
if (ObjectUtils.isNotEmpty(scriptInfo)) {
// 话术库json内容替换
manageNode.setPhoneNodeContent(getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList));
}
}
}
// 电话短信内容
if (manageNode.getPhoneMessageTemplateId() != null) {
// 查询短信库
manageNode.setPhoneMessageTemplateContent(replaceMessageInfo(manageNode.getPhoneMessageTemplateId(), labelFieldContentList));
}
break;
// 问卷
case TaskNodeTypeConstants.QUESTIONNAIRE_SCALE:
// 宣教
case TaskNodeTypeConstants.PROPAGANDA_ARTICLE:
// 文字提醒
case TaskNodeTypeConstants.TEXT_REMIND:
// 人工随访
//case TaskContentConstants.ARTIFICIAL_FOLLOW_UP:
// break;
// 电话短信内容
if (manageNode.getPhoneMessageTemplateId() != null) {
// 查询短信库
manageNode.setPhoneMessageTemplateContent(replaceMessageInfo(manageNode.getPhoneMessageTemplateId(), labelFieldContentList));
}
break;
// 问卷
case TaskNodeTypeConstants.QUESTIONNAIRE_SCALE:
// 宣教
case TaskNodeTypeConstants.PROPAGANDA_ARTICLE:
// 文字提醒
case TaskNodeTypeConstants.TEXT_REMIND:
// 人工随访
//case TaskContentConstants.ARTIFICIAL_FOLLOW_UP:
// break;
}
}
signPatientManageRouteNodeMapper.updateSignPatientManageRouteNode(manageNode);
});