@@ -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<AttachmentDTO> AttachmentList { get; set; }
|
||||
|
||||
public List<SowDTO> SowList { get; set; }
|
||||
@@ -313,6 +315,37 @@ namespace IRaCIS.Application.Contracts
|
||||
|
||||
}
|
||||
|
||||
public class PaymentModeDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 银行卡号
|
||||
/// </summary>
|
||||
public string BankNum { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 银行名称
|
||||
/// </summary>
|
||||
public string BankName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 开户行
|
||||
/// </summary>
|
||||
public string OpeningBank { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 身份证号
|
||||
/// </summary>
|
||||
public string IdCard { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 银行手机号
|
||||
/// </summary>
|
||||
public string BankPhoneNum { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
public class UpdateGneralSituationDto
|
||||
{
|
||||
|
||||
@@ -232,7 +232,34 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
var doctorBasicInfo = (await _doctorRepository.Where(t => t.Id == Id)
|
||||
.ProjectTo<UpdateGneralSituationDto>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
||||
return doctorBasicInfo;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 修改支付方式
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[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();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取支付方式
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<PaymentModeDto> GetPaymentMode(Guid Id)
|
||||
{
|
||||
var doctorBasicInfo = await _doctorRepository.Where(t => t.Id == Id)
|
||||
.ProjectTo<PaymentModeDto>(_mapper.ConfigurationProvider).FirstNotNullAsync();
|
||||
return doctorBasicInfo;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,14 @@ namespace IRaCIS.Application.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<EmploymentDTO> GetEmploymentInfo(Guid doctorId);
|
||||
|
||||
|
||||
/// <summary>
|
||||
///获取支付信息
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
Task<PaymentModeDto> GetPaymentMode(Guid Id);
|
||||
|
||||
/// <summary>
|
||||
/// 获取概述
|
||||
/// </summary>
|
||||
|
||||
@@ -63,6 +63,10 @@ namespace IRaCIS.Core.Application.Service
|
||||
CreateMap<Doctor, DoctorSelectDTO>();
|
||||
CreateMap<Doctor, UpdateGneralSituationDto>();
|
||||
|
||||
CreateMap<Doctor, PaymentModeDto>();
|
||||
|
||||
CreateMap<PaymentModeDto, Doctor>();
|
||||
|
||||
CreateMap<Doctor, TrialExperienceModel>();
|
||||
CreateMap<TrialExperience, TrialExperienceCommand>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user