From f9c2ac030af48f2faf43b2ab999edea8cd41c78b Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 14 Mar 2025 13:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRaCIS.Core.Application.xml | 23 ++++++++++++++++++- .../Service/Doctor/AttachmentService.cs | 18 +++++++++++++++ .../Service/Doctor/DTO/AttachmentModel.cs | 16 +++++++++++++ .../Service/Doctor/_MapConfig.cs | 1 + 4 files changed, 57 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index d117aa024..f7ab56044 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -1054,7 +1054,7 @@ 医生文档关联关系维护 - + 医生文档关联关系维护 @@ -1089,6 +1089,27 @@ 医生Id + + + 获取项目医生附件 + + + + + + + 修改稽查状态 + + + + + + + 上传项目医生 + + + + 保存多个附件 diff --git a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs index f227d8324..7942c55cf 100644 --- a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs @@ -119,6 +119,24 @@ namespace IRaCIS.Core.Application.Service } + + /// + /// 获取医生列表 + /// + /// + /// + [HttpPost] + public async Task> GetTrialDoctorList(GetTrialDoctorSelectInDto inDto) + { + var result= await _enrollRepository.Where(x => x.TrialId == inDto.TrialId && x.EnrollStatus >= EnrollStatus.InviteIntoGroup).Select(x => x.Doctor) + + .ProjectTo(_mapper.ConfigurationProvider).OrderBy(x=>x.BlindName).ToListAsync(); + + + return result; + } + + /// /// 修改稽查状态 /// diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs index 466dfaf6c..56b74cd64 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs @@ -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 { diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs index c50b00f96..2cc6916c6 100644 --- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs @@ -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(); + CreateMap(); CreateMap(); CreateMap();