代码导出配置修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
141fbc2e75
commit
b83e42d788
|
@ -76,21 +76,11 @@ 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()
|
||||
{
|
||||
ExportResultStr = ExportResultStr
|
||||
});
|
||||
}
|
||||
else if (inDto.ExportType == ExportType.CDISC)
|
||||
{
|
||||
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.QuestionId, x => new ReadingQuestionTrial()
|
||||
{
|
||||
ExportResultStr = ExportResultStr,
|
||||
CDISCCode = item.CDISCCode,
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -105,22 +95,12 @@ 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()
|
||||
{
|
||||
ExportResultStr = ExportResultStr
|
||||
});
|
||||
}
|
||||
else if (inDto.ExportType == ExportType.CDISC)
|
||||
{
|
||||
await _readingTableQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.TableQuestionId, x => new ReadingTableQuestionTrial()
|
||||
{
|
||||
ExportResultStr = ExportResultStr,
|
||||
CDISCCode = item.CDISCCode,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return await _readingTableQuestionTrialRepository.SaveChangesAsync();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue