Uat_Study
he 2022-12-09 17:41:51 +08:00
parent 0b3c5c92e2
commit bbb08f7527
2 changed files with 13 additions and 10 deletions

View File

@ -643,6 +643,13 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<IResponseOutput> AddOrUpdateReadingTableQuestionTrial(ReadingTableQuestionTrialAddOrEdit indto)
{
if (await _readingTableQuestionTrialRepository.AnyAsync(x => x.Id != indto.Id && x.ShowOrder == indto.ShowOrder && x.ReadingQuestionId==indto.ReadingQuestionId))
{
throw new BusinessValidationFailedException("问题编号重复");
}
indto.ParentTriggerValue = string.Join(',', indto.ParentTriggerValueList);
indto.RelevanceValue = string.Join(',', indto.RelevanceValueList);

View File

@ -592,8 +592,6 @@ namespace IRaCIS.Application.Services
if (inDto.TaskId != null)
{
var answers = await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.TaskId).ToListAsync();
qusetionList.ForEach(x =>
{
@ -601,8 +599,6 @@ namespace IRaCIS.Application.Services
x.Answer = answer.IsNullOrEmpty() ? x.DefaultValue : answer;
});
}
#endregion
var groupList = new List<TrialReadQuestionData>();