diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs index 8b9bb48b8..e24c7e99c 100644 --- a/IRaCIS.Core.API/Controllers/ExtraController.cs +++ b/IRaCIS.Core.API/Controllers/ExtraController.cs @@ -62,7 +62,8 @@ namespace IRaCIS.Api.Controllers BasicInfoView = await _doctorService.GetBasicInfo(doctorId), EmploymentView = await _doctorService.GetEmploymentInfo(doctorId), AttachmentList = await attachmentService.GetAttachments(doctorId), - SummarizeInfo= await _doctorService.GetSummarizeInfo(doctorId), + SummarizeInfo = await _doctorService.GetSummarizeInfo(doctorId), + PaymentModeInfo = await _doctorService.GetPaymentMode(doctorId), EducationList = education.EducationList, PostgraduateList = education.PostgraduateList, diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs index fc3f0e688..cef34031a 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs @@ -249,6 +249,8 @@ namespace IRaCIS.Application.Contracts public ResumeConfirmDTO AuditView { get; set; } public UpdateGneralSituationDto SummarizeInfo { get; set; } + + public PaymentModeDto PaymentModeInfo { get; set; } public IEnumerable AttachmentList { get; set; } public List SowList { get; set; } @@ -313,6 +315,37 @@ namespace IRaCIS.Application.Contracts } + public class PaymentModeDto + { + public Guid Id { get; set; } + + + /// + /// 银行卡号 + /// + public string BankNum { get; set; } = string.Empty; + + /// + /// 银行名称 + /// + public string BankName { get; set; } = string.Empty; + + /// + /// 开户行 + /// + public string OpeningBank { get; set; } = string.Empty; + + /// + /// 身份证号 + /// + public string IdCard { get; set; } = string.Empty; + + /// + /// 银行手机号 + /// + public string BankPhoneNum { get; set; } = string.Empty; + + } public class UpdateGneralSituationDto { diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs index 30f68206f..853304fc1 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs @@ -232,7 +232,34 @@ namespace IRaCIS.Core.Application.Service { var doctorBasicInfo = (await _doctorRepository.Where(t => t.Id == Id) .ProjectTo(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException(); + return doctorBasicInfo; + } + + /// + /// 修改支付方式 + /// + /// + /// + [HttpPost] + public async Task UpdatePaymentMode(PaymentModeDto inDto) + { + + var doctor = await _doctorRepository.FirstOrDefaultAsync(t => t.Id == inDto.Id).IfNullThrowException(); + _mapper.Map(inDto, doctor); + var success = await _doctorDictionaryRepository.SaveChangesAsync(); + } + + + /// + /// 获取支付方式 + /// + /// + /// + public async Task GetPaymentMode(Guid Id) + { + var doctorBasicInfo = await _doctorRepository.Where(t => t.Id == Id) + .ProjectTo(_mapper.ConfigurationProvider).FirstNotNullAsync(); return doctorBasicInfo; } diff --git a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs index a743a3b4b..0a70ba78e 100644 --- a/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/Interface/IDoctorService.cs @@ -31,6 +31,14 @@ namespace IRaCIS.Application.Interfaces /// Task GetEmploymentInfo(Guid doctorId); + + /// + ///获取支付信息 + /// + /// + /// + Task GetPaymentMode(Guid Id); + /// /// 获取概述 /// diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs index e7b89b2ba..aba729ec3 100644 --- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs @@ -63,6 +63,10 @@ namespace IRaCIS.Core.Application.Service CreateMap(); CreateMap(); + CreateMap(); + + CreateMap(); + CreateMap(); CreateMap(); diff --git a/IRaCIS.Core.Domain/Dcotor/Doctor.cs b/IRaCIS.Core.Domain/Dcotor/Doctor.cs index 41a2ddf39..87e89ee80 100644 --- a/IRaCIS.Core.Domain/Dcotor/Doctor.cs +++ b/IRaCIS.Core.Domain/Dcotor/Doctor.cs @@ -192,6 +192,33 @@ public class Doctor : BaseFullAuditEntity /// public string SummarizeEn { get; set; } = string.Empty; + + /// + /// п + /// + public string BankNum { get; set; } = string.Empty; + + /// + /// + /// + public string BankName { get; set; } = string.Empty; + + /// + /// + /// + public string OpeningBank { get; set; } = string.Empty; + + /// + /// ֤ + /// + public string IdCard { get; set; } = string.Empty; + + /// + /// ֻ + /// + public string BankPhoneNum { get; set; } = string.Empty; + + [NotMapped] public string FullName => LastName + " / " + FirstName; }