代码修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5e384db795
commit
3dcf94f637
|
@ -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,
|
||||
|
||||
|
|
|
@ -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>();
|
||||
|
||||
|
|
|
@ -192,6 +192,33 @@ public class Doctor : BaseFullAuditEntity
|
|||
/// </summary>
|
||||
public string SummarizeEn { get; set; } = string.Empty;
|
||||
|
||||
|
||||
/// <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;
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public string FullName => LastName + " / " + FirstName;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue