IRC_NewDev
parent
78c707a018
commit
9d3e1edd61
|
@ -21,7 +21,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
.OrderBy(t => t.CreateTime).ProjectTo<EducationInfoViewModel>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
var postgraduateList = await _postgraduateRepository.Where(o => o.DoctorId == doctorId)
|
||||
.OrderBy(t => t.CreateTime).ProjectTo<PostgraduateViewModel>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
.OrderBy(t => t.CreateTime).ProjectTo<PostgraduateViewModel>(_mapper.ConfigurationProvider, new { isEn_Us = _userInfo.IsEn_Us }).ToListAsync();
|
||||
|
||||
|
||||
return new DoctorEducationExperienceDTO()
|
||||
|
|
|
@ -11,6 +11,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
public DoctorConfig()
|
||||
{
|
||||
var isEn_Us = false;
|
||||
|
||||
// 从 DateTime 映射到 DateOnly
|
||||
CreateMap<DateTime, DateOnly>().ConvertUsing(dt => DateOnly.FromDateTime(dt));
|
||||
|
@ -66,7 +67,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
CreateMap<Vacation, VacationCommand>();
|
||||
CreateMap<ResearchPublication, ResearchPublicationDTO>();
|
||||
CreateMap<Postgraduate, PostgraduateViewModel>();
|
||||
CreateMap<Postgraduate, PostgraduateViewModel>()
|
||||
.ForMember(t => t.HospitalCN, c => c.MapFrom(d => isEn_Us ? d.HospitalEnt.HospitalName : d.HospitalEnt.HospitalNameCN));
|
||||
CreateMap<Attachment, AttachmentDTO>();
|
||||
CreateMap<Doctor, ResumeConfirmDTO>();
|
||||
|
||||
|
|
|
@ -5,7 +5,9 @@ namespace IRaCIS.Core.Domain.Models;
|
|||
public class Postgraduate : BaseFullAuditEntity
|
||||
{
|
||||
#region 导航属性
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("HospitalId")]
|
||||
public Hospital HospitalEnt { get; set; }
|
||||
#endregion
|
||||
|
||||
public Guid DoctorId { get; set; }
|
||||
|
|
Loading…
Reference in New Issue