代码导出配置修改
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
he 2025-01-02 15:06:09 +08:00
parent 141fbc2e75
commit b83e42d788
1 changed files with 11 additions and 31 deletions

View File

@ -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();