Uat_Study
he 2022-08-11 13:55:31 +08:00
parent bff26fc568
commit 728716256c
1 changed files with 9 additions and 0 deletions

View File

@ -191,6 +191,15 @@ namespace IRaCIS.Application.Services
if (firstQuestion != null) if (firstQuestion != null)
{ {
var systemData = _mapper.Map<ReadingQuestionSystem>(x); var systemData = _mapper.Map<ReadingQuestionSystem>(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); var newData = _mapper.Map(systemData, firstQuestion);
newData.Id = x.Id; newData.Id = x.Id;
newData.ReadingQuestionSystemId = x.ReadingQuestionSystemId; newData.ReadingQuestionSystemId = x.ReadingQuestionSystemId;