|
|
|
@ -97,7 +97,7 @@ public class MedicalRecAnswerExcelDTO {
|
|
|
|
|
this.matchQuestion(questionLibraryList);
|
|
|
|
|
this.matchAskPatientAnswer(askPatientAnswerList);
|
|
|
|
|
this.matchAnswerResource(materialLibraryList);
|
|
|
|
|
//this.matchQuestionDicId(questionTypeDicList);
|
|
|
|
|
this.matchQuestionDicId(questionTypeDicList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AskPatientAnswer toAskPatientAnswer(){
|
|
|
|
@ -210,23 +210,28 @@ public class MedicalRecAnswerExcelDTO {
|
|
|
|
|
errorCodeEnums.add(ErrorCodeEnum.ANSWER_VIDEO_NAME_NOT_FIND);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void matchQuestionDicId(List<CommonDic> questionTypeDicList){
|
|
|
|
|
if (StrUtil.isEmpty(this.questionTypeTwo)){
|
|
|
|
|
public void matchQuestionDicId(List<CommonDic> questionTypeDicList) {
|
|
|
|
|
if (StrUtil.isEmpty(this.questionTypeTwo) || StrUtil.isEmpty(questionTypeOne)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(CollUtil.isEmpty(questionTypeDicList)){
|
|
|
|
|
errorCodeEnums.add(ErrorCodeEnum.DICE_NOT_FIND);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (CommonDic questionTypeDic : questionTypeDicList) {
|
|
|
|
|
if (this.questionTypeTwo.equals(questionTypeDic.getNameZh())){
|
|
|
|
|
// todo:再次校验questionTypeOne是否正确
|
|
|
|
|
if (this.questionTypeTwo.equals(questionTypeDic.getNameZh())) {
|
|
|
|
|
String nameZhPath = questionTypeDic.getNameZhPath();
|
|
|
|
|
if (StrUtil.isEmpty(nameZhPath)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
// 一共两个级别
|
|
|
|
|
List<String> split = StrUtil.split(nameZhPath, "/");
|
|
|
|
|
if (!this.questionTypeOne.equals(CollUtil.getFirst(split))) {
|
|
|
|
|
// 如果类目一匹配不正确,也不进行处理
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
this.dictId = String.valueOf(questionTypeDic.getId());
|
|
|
|
|
this.dictNamePath = questionTypeDic.getNameZhPath();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
errorCodeEnums.add(ErrorCodeEnum.DICE_NOT_FIND);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|