代码导出配置修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
141fbc2e75
commit
b83e42d788
|
@ -76,23 +76,13 @@ namespace IRaCIS.Core.Application.Service
|
|||
item.ExportResult.AddRange(needAdd);
|
||||
}
|
||||
var ExportResultStr=JsonConvert.SerializeObject(item.ExportResult);
|
||||
if (inDto.ExportType == ExportType.Basic)
|
||||
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.QuestionId, x => new ReadingQuestionTrial()
|
||||
{
|
||||
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.QuestionId, x => new ReadingQuestionTrial()
|
||||
{
|
||||
ExportResultStr = ExportResultStr
|
||||
});
|
||||
}
|
||||
else if (inDto.ExportType == ExportType.CDISC)
|
||||
{
|
||||
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.QuestionId, x => new ReadingQuestionTrial()
|
||||
{
|
||||
ExportResultStr = ExportResultStr,
|
||||
CDISCCode = item.CDISCCode,
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
ExportResultStr = ExportResultStr,
|
||||
CDISCCode = item.CDISCCode,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
foreach (var item in inDto.TableQuestionList)
|
||||
{
|
||||
|
@ -103,23 +93,13 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
var ExportResultStr = JsonConvert.SerializeObject(item.ExportResult);
|
||||
|
||||
|
||||
if (inDto.ExportType == ExportType.Basic)
|
||||
|
||||
await _readingTableQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.TableQuestionId, x => new ReadingTableQuestionTrial()
|
||||
{
|
||||
await _readingTableQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.TableQuestionId, x => new ReadingTableQuestionTrial()
|
||||
{
|
||||
ExportResultStr = ExportResultStr
|
||||
});
|
||||
}
|
||||
else if (inDto.ExportType == ExportType.CDISC)
|
||||
{
|
||||
await _readingTableQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.TableQuestionId, x => new ReadingTableQuestionTrial()
|
||||
{
|
||||
ExportResultStr = ExportResultStr,
|
||||
CDISCCode=item.CDISCCode,
|
||||
});
|
||||
}
|
||||
ExportResultStr = ExportResultStr,
|
||||
CDISCCode = item.CDISCCode,
|
||||
});
|
||||
}
|
||||
|
||||
return await _readingTableQuestionTrialRepository.SaveChangesAsync();
|
||||
|
|
Loading…
Reference in New Issue