|
|
|
@ -69,6 +69,9 @@ public class MedicalRecAnswerExcelDTO {
|
|
|
|
|
|
|
|
|
|
private String dictNamePath;
|
|
|
|
|
|
|
|
|
|
// 默认视频后缀
|
|
|
|
|
private String answerVideoSuffix = ".mp4";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static final List<String> READ_ANSWER_VIDEO_TITLE = CollUtil.newArrayList("问诊类目Ⅰ", "问诊类目Ⅱ", "* 知识", "* 回答","* 视频名称");
|
|
|
|
|
|
|
|
|
@ -83,16 +86,18 @@ public class MedicalRecAnswerExcelDTO {
|
|
|
|
|
List<AskPatientAnswer> askPatientAnswerList,
|
|
|
|
|
List<MaterialLibrary> materialLibraryList,
|
|
|
|
|
List<CommonDic> questionTypeDicList){
|
|
|
|
|
// 如果视频名称没有后缀,默认添加.mp4后缀
|
|
|
|
|
if (StrUtil.isNotEmpty(this.answerVideoName)
|
|
|
|
|
&& StrUtil.split(this.answerVideoName,".").size() >1){
|
|
|
|
|
answerVideoName = answerVideoName + ".mp4";
|
|
|
|
|
|
|
|
|
|
if (StrUtil.isNotEmpty(this.answerVideoName)){
|
|
|
|
|
List<String> split = StrUtil.split(this.answerVideoName, ".");
|
|
|
|
|
if (split.size() > 1){
|
|
|
|
|
answerVideoSuffix = "." + split.get(split.size() - 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.absentCheck();
|
|
|
|
|
this.matchQuestion(questionLibraryList);
|
|
|
|
|
this.matchAskPatientAnswer(askPatientAnswerList);
|
|
|
|
|
this.matchAnswerResource(materialLibraryList);
|
|
|
|
|
this.matchQuestionDicId(questionTypeDicList);
|
|
|
|
|
//this.matchQuestionDicId(questionTypeDicList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AskPatientAnswer toAskPatientAnswer(){
|
|
|
|
@ -193,8 +198,11 @@ public class MedicalRecAnswerExcelDTO {
|
|
|
|
|
errorCodeEnums.add(ErrorCodeEnum.ANSWER_VIDEO_NAME_NOT_FIND);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 完整视频名称
|
|
|
|
|
String fullAnswerVideoName = this.answerVideoName + answerVideoSuffix;
|
|
|
|
|
|
|
|
|
|
for (MaterialLibrary materialLibrary : materialLibraryList) {
|
|
|
|
|
if (this.answerVideoName.equals(materialLibrary.getMaterialName())){
|
|
|
|
|
if (fullAnswerVideoName.equals(materialLibrary.getMaterialName())){
|
|
|
|
|
this.answerResourceId = materialLibrary.getFileResourceId();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|