修改
continuous-integration/drone/push Build is running Details

IRC_NewDev
he 2024-11-18 15:55:57 +08:00
parent 1c6acff8d7
commit 985250e25c
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
using IRaCIS.Application.Contracts;
using IRaCIS.Application.Interfaces;
using MassTransit;
using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Core.Application.Service
@ -117,7 +118,11 @@ namespace IRaCIS.Core.Application.Service
item.Trial = null;
item.TrialId = inDto.TrialId;
item.ExperienceDataType = ExperienceDataType.Trial;
item.Id = NewId.NextGuid();
}
await _trialExperienceRepository.AddRangeAsync(trialExperienceList);
await _trialExperienceRepository.SaveChangesAsync();
}
var doctorClinicalTrialExperienceList = await _trialExperienceRepository
@ -126,6 +131,8 @@ namespace IRaCIS.Core.Application.Service
.Where(x => x.TrialId == inDto.TrialId.Value)
.OrderBy(t => t.CreateTime)
.ProjectTo<TrialExperienceListDTO>(_mapper.ConfigurationProvider).ToListAsync();
return doctorClinicalTrialExperienceList;
}