代码导出配置修改
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);
|
item.ExportResult.AddRange(needAdd);
|
||||||
}
|
}
|
||||||
var ExportResultStr=JsonConvert.SerializeObject(item.ExportResult);
|
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()
|
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.QuestionId, x => new ReadingQuestionTrial()
|
||||||
{
|
{
|
||||||
ExportResultStr = ExportResultStr,
|
ExportResultStr = ExportResultStr,
|
||||||
CDISCCode = item.CDISCCode,
|
CDISCCode = item.CDISCCode,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,22 +95,12 @@ namespace IRaCIS.Core.Application.Service
|
||||||
var ExportResultStr = JsonConvert.SerializeObject(item.ExportResult);
|
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()
|
await _readingTableQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.Id == item.TableQuestionId, x => new ReadingTableQuestionTrial()
|
||||||
{
|
{
|
||||||
ExportResultStr = ExportResultStr,
|
ExportResultStr = ExportResultStr,
|
||||||
CDISCCode = item.CDISCCode,
|
CDISCCode = item.CDISCCode,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return await _readingTableQuestionTrialRepository.SaveChangesAsync();
|
return await _readingTableQuestionTrialRepository.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue