修改
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
1c6acff8d7
commit
985250e25c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue