This commit is contained in:
he
2024-10-22 14:55:39 +08:00
parent e26c9b6c1a
commit 6d98b140e1
8 changed files with 121 additions and 60 deletions
@@ -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>();