修改
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2024-11-21 13:32:14 +08:00
parent c08bad2fec
commit 6c434e2ace
3 changed files with 11 additions and 4 deletions
@@ -369,7 +369,7 @@ namespace IRaCIS.Application.Contracts
{
public Guid DoctorId { get; set; }
public Guid? TrialId { get; set; }
public Guid? TrialId { get; set; } = null;
}
public class SummarizeInfoDto
@@ -273,8 +273,7 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<UpdateGneralSituationDto> GetSummarizeInfo(GetSummarizeInfoInDto inDto)
{
var result = await _doctorSummarizeRepository.Where(t => t.Id == inDto.DoctorId && t.TrialId == inDto.TrialId)
.ProjectTo<SummarizeInfoDto>(_mapper.ConfigurationProvider).ToListAsync();
if (inDto.TrialId != null)
{
var doctorInfo = await trialExperienceService.GetTrialDoctorInfo(new GetTrialDoctorInfoInDto()
@@ -284,7 +283,8 @@ namespace IRaCIS.Core.Application.Service
});
}
var result = await _doctorSummarizeRepository.Where(t => t.DoctorId == inDto.DoctorId && t.TrialId == inDto.TrialId)
.ProjectTo<SummarizeInfoDto>(_mapper.ConfigurationProvider).ToListAsync();
return new UpdateGneralSituationDto() {
SummarizeList= result
};