Uat_Study
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;
|
||||
|
|
Loading…
Reference in New Issue