This commit is contained in:
he
2022-08-11 13:55:31 +08:00
parent bff26fc568
commit 728716256c
@@ -191,6 +191,15 @@ namespace IRaCIS.Application.Services
if (firstQuestion != null)
{
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);
newData.Id = x.Id;
newData.ReadingQuestionSystemId = x.ReadingQuestionSystemId;