修改曜智外呼。
This commit is contained in:
parent
e35ee57810
commit
c5f5d45167
@ -103,6 +103,16 @@ public class QuestionSubjectOption extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private String remarkableFlag;
|
private String remarkableFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附加问题内容
|
||||||
|
*/
|
||||||
|
private String additionalQuestion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 附加问题的意图
|
||||||
|
*/
|
||||||
|
private String additionalQuestionIntent;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|||||||
@ -409,7 +409,7 @@ public class YZAIOBSServiceImpl implements IYZAIOBSService {
|
|||||||
String aiobQuestionName = "";
|
String aiobQuestionName = "";
|
||||||
for (int i = 0; i < recordList.size(); i++) {
|
for (int i = 0; i < recordList.size(); i++) {
|
||||||
if (StringUtils.equals(recordList.get(i).getRole(), "speech") && StringUtils.isNotBlank(recordList.get(i).getContextText())
|
if (StringUtils.equals(recordList.get(i).getRole(), "speech") && StringUtils.isNotBlank(recordList.get(i).getContextText())
|
||||||
&&recordList.get(i).getContextText().contains(questionNameAlias.replaceAll("\\p{P}", ""))
|
&& recordList.get(i).getContextText().contains(questionNameAlias.replaceAll("\\p{P}", ""))
|
||||||
) {
|
) {
|
||||||
hasQuestion = true;
|
hasQuestion = true;
|
||||||
aiobQuestionName = recordList.get(i).getContextText();
|
aiobQuestionName = recordList.get(i).getContextText();
|
||||||
@ -453,6 +453,11 @@ public class YZAIOBSServiceImpl implements IYZAIOBSService {
|
|||||||
|
|
||||||
patientQuestionOptionResult.setQuestionSubjectOptionId(questionSubjectOption.getId());
|
patientQuestionOptionResult.setQuestionSubjectOptionId(questionSubjectOption.getId());
|
||||||
|
|
||||||
|
// 判断是否有附加问题
|
||||||
|
if (callResultIntents.contains(questionSubjectOption.getAdditionalQuestionIntent())) {
|
||||||
|
//recordList.get(i).getContextText().contains(questionNameAlias.replaceAll("\\p{P}", "")
|
||||||
|
patientQuestionOptionResult.setOptionSubmitAnswer(getReply(recordList, questionSubjectOption.getAdditionalQuestion()));
|
||||||
|
}
|
||||||
patientQuestionOptionResults.add(patientQuestionOptionResult);
|
patientQuestionOptionResults.add(patientQuestionOptionResult);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,8 @@
|
|||||||
<result property="intent" column="intent"/>
|
<result property="intent" column="intent"/>
|
||||||
<result property="contentedFlag" column="contented_flag"/>
|
<result property="contentedFlag" column="contented_flag"/>
|
||||||
<result property="remarkableFlag" column="remarkable_flag"/>
|
<result property="remarkableFlag" column="remarkable_flag"/>
|
||||||
|
<result property="additionalQuestion" column="additional_question"/>
|
||||||
|
<result property="additionalQuestionIntent" column="additional_question_intent"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectQuestionSubjectOptionVo">
|
<sql id="selectQuestionSubjectOptionVo">
|
||||||
@ -39,7 +41,9 @@
|
|||||||
speech_context_text,
|
speech_context_text,
|
||||||
intent,
|
intent,
|
||||||
contented_flag,
|
contented_flag,
|
||||||
remarkable_flag
|
remarkable_flag,
|
||||||
|
additional_question,
|
||||||
|
additional_question_intent
|
||||||
from question_subject_option
|
from question_subject_option
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@ -117,6 +121,10 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="remarkableFlag != null">remarkable_flag,
|
<if test="remarkableFlag != null">remarkable_flag,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="additionalQuestion != null">additional_question,
|
||||||
|
</if>
|
||||||
|
<if test="additionalQuestionIntent != null">additional_question_intent,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="questionnaireSubjectId != null">#{questionnaireSubjectId},
|
<if test="questionnaireSubjectId != null">#{questionnaireSubjectId},
|
||||||
@ -149,6 +157,10 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="remarkableFlag != null">#{remarkableFlag},
|
<if test="remarkableFlag != null">#{remarkableFlag},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="additionalQuestion != null">#{additionalQuestion},
|
||||||
|
</if>
|
||||||
|
<if test="additionalQuestionIntent != null">#{additionalQuestionIntent},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -200,6 +212,12 @@
|
|||||||
<if test="remarkableFlag != null">remarkable_flag =
|
<if test="remarkableFlag != null">remarkable_flag =
|
||||||
#{remarkableFlag},
|
#{remarkableFlag},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="additionalQuestion != null">additional_question =
|
||||||
|
#{additionalQuestion},
|
||||||
|
</if>
|
||||||
|
<if test="additionalQuestionIntent != null">additional_question_intent =
|
||||||
|
#{additionalQuestionIntent},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
@ -231,8 +249,10 @@
|
|||||||
speech_context_text,
|
speech_context_text,
|
||||||
intent,
|
intent,
|
||||||
contented_flag,
|
contented_flag,
|
||||||
remarkable_flag
|
remarkable_flag,
|
||||||
) values
|
additional_question,
|
||||||
|
additional_question_intent
|
||||||
|
) values
|
||||||
<foreach item="QuestionSubjectOption" index="index" collection="list" separator=",">
|
<foreach item="QuestionSubjectOption" index="index" collection="list" separator=",">
|
||||||
(
|
(
|
||||||
#{QuestionSubjectOption.questionnaireSubjectId},
|
#{QuestionSubjectOption.questionnaireSubjectId},
|
||||||
@ -247,8 +267,10 @@
|
|||||||
#{QuestionSubjectOption.speechContextText},
|
#{QuestionSubjectOption.speechContextText},
|
||||||
#{QuestionSubjectOption.intent},
|
#{QuestionSubjectOption.intent},
|
||||||
#{QuestionSubjectOption.contentedFlag},
|
#{QuestionSubjectOption.contentedFlag},
|
||||||
#{QuestionSubjectOption.remarkableFlag}
|
#{QuestionSubjectOption.remarkableFlag},
|
||||||
)
|
#{QuestionSubjectOption.additionalQuestion},
|
||||||
|
#{QuestionSubjectOption.additionalQuestionIntent}
|
||||||
|
)
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -269,7 +291,9 @@
|
|||||||
speech_context_text,
|
speech_context_text,
|
||||||
intent,
|
intent,
|
||||||
contented_flag,
|
contented_flag,
|
||||||
remarkable_flag
|
remarkable_flag,
|
||||||
|
additional_question,
|
||||||
|
additional_question_intent
|
||||||
from question_subject_option
|
from question_subject_option
|
||||||
<where>
|
<where>
|
||||||
<if test="questionSubjectIds != null and questionSubjectIds.size() > 0">
|
<if test="questionSubjectIds != null and questionSubjectIds.size() > 0">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user