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

This commit is contained in:
he
2025-03-14 13:29:01 +08:00
parent 7ce2386aea
commit f9c2ac030a
4 changed files with 57 additions and 1 deletions
@@ -119,6 +119,24 @@ namespace IRaCIS.Core.Application.Service
}
/// <summary>
/// 获取医生列表
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<GetTrialDoctorListOutDto>> GetTrialDoctorList(GetTrialDoctorSelectInDto inDto)
{
var result= await _enrollRepository.Where(x => x.TrialId == inDto.TrialId && x.EnrollStatus >= EnrollStatus.InviteIntoGroup).Select(x => x.Doctor)
.ProjectTo<GetTrialDoctorListOutDto>(_mapper.ConfigurationProvider).OrderBy(x=>x.BlindName).ToListAsync();
return result;
}
/// <summary>
/// 修改稽查状态
/// </summary>
@@ -24,6 +24,22 @@
public bool IsAuthorizedView { get; set; }
}
public class GetTrialDoctorSelectInDto
{
public Guid TrialId { get; set; }
}
public class GetTrialDoctorListOutDto
{
public Guid Id { get; set; }
public string BlindName { get; set; } = string.Empty;
public string BlindNameCN { get; set; } = string.Empty;
public string ChineseName { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;
public string FullName => LastName + " / " + FirstName;
public string LastName { get; set; } = string.Empty;
}
public class GetTrialAttachmentsInDto:PageInput
{
@@ -71,6 +71,7 @@ namespace IRaCIS.Core.Application.Service
// .ForMember(t => t.Hospital, c => c.MapFrom(d => d.HospitalEnt.HospitalName))
//.ForMember(t => t.HospitalCN, c => c.MapFrom(d => d.HospitalEnt.HospitalNameCN));
CreateMap<Attachment, AttachmentDTO>();
CreateMap<Doctor, GetTrialDoctorListOutDto>();
CreateMap<Doctor, ResumeConfirmDTO>();
CreateMap<Doctor, DoctorSelectDTO>();