修改一版

Uat_Study
he 2022-07-22 16:52:31 +08:00
parent 547f7e82dc
commit cf615e8ea1
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public Guid SubjectId { get; set; }
public Guid TrialId { get; set; }
public List<SaveGlobalReadingQuestion> QuestionList { get; set; }

View File

@ -112,7 +112,8 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<IResponseOutput> SaveGlobalReadingInfo(SaveGlobalReadingInfoInDto inDto)
{
await _readingGlobalTaskInfoRepository.BatchDeleteNoTrackingAsync(x => x.GlobalTaskId == inDto.GlobalTaskId);
var visitTaskId = inDto.QuestionList.Select(x => x.VisitTaskId).FirstOrDefault();
await _readingGlobalTaskInfoRepository.BatchDeleteNoTrackingAsync(x => x.GlobalTaskId == inDto.GlobalTaskId&&x.TaskId== visitTaskId);
foreach(var item in inDto.QuestionList)
{