修改
This commit is contained in:
@@ -16,4 +16,20 @@
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class ResearchPublicationInfoDTO
|
||||
{
|
||||
public Guid? Id { get; set; }
|
||||
public Guid DoctorId { get; set; }
|
||||
public string? Research { get; set; }
|
||||
public string? Grants { get; set; }
|
||||
public string? Publications { get; set; }
|
||||
public string? AwardsHonors { get; set; }
|
||||
|
||||
public string? ResearchCN { get; set; }
|
||||
public string? GrantsCN { get; set; }
|
||||
public string? PublicationsCN { get; set; }
|
||||
public string? AwardsHonorsCN { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -31,5 +31,18 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
return ResponseOutput.Ok(entity.Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增或修改ResearchPublication 传null不修改
|
||||
/// </summary>
|
||||
/// <param name="param"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> AddOrUpdateResearchPublicationInfo(ResearchPublicationInfoDTO param)
|
||||
{
|
||||
var entity = await _researchPublicationRepository.InsertOrUpdateAsync(param, true);
|
||||
|
||||
return ResponseOutput.Ok(entity.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
using AutoMapper.EquivalencyExpression;
|
||||
using IRaCIS.Application.Contracts;
|
||||
using IRaCIS.Application.Contracts.Pay;
|
||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service
|
||||
@@ -38,6 +39,10 @@ namespace IRaCIS.Core.Application.Service
|
||||
CreateMap<ResearchPublicationDTO, ResearchPublication>().EqualityComparison((odto, o) => odto.Id == o.Id);
|
||||
CreateMap<TrialExperienceCommand, TrialExperience>().EqualityComparison((odto, o) => odto.Id == o.Id);
|
||||
|
||||
CreateMap<ResearchPublicationInfoDTO, ResearchPublication>()
|
||||
.ForAllMembers(opts => opts.Condition((src, dest, srcMember) => srcMember != null));
|
||||
|
||||
|
||||
//医生账户
|
||||
CreateMap<DoctorAccountLoginDTO, Doctor>();
|
||||
CreateMap<DoctorAccountRegisterModel, Doctor>();
|
||||
|
||||
Reference in New Issue
Block a user