From 728716256cd2c83974e23d294428e316d201569c Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Thu, 11 Aug 2022 13:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/ReadingQuestionService.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs index fbf124f95..75374245c 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs @@ -191,6 +191,15 @@ namespace IRaCIS.Application.Services if (firstQuestion != null) { var systemData = _mapper.Map(x); + if (firstQuestion.IsJudgeQuestion) + { + if (firstQuestion.TypeValue != x.TypeValue) + { + firstQuestion.AnswerCombination = string.Empty; + firstQuestion.AnswerGroup = string.Empty; + firstQuestion.JudgeType = JudgeTypeEnum.None; + } + } var newData = _mapper.Map(systemData, firstQuestion); newData.Id = x.Id; newData.ReadingQuestionSystemId = x.ReadingQuestionSystemId;