From 57bec89d11f95c3fcddcdfee5864acd24ba3682f Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 12 Aug 2022 09:54:19 +0800 Subject: [PATCH] x --- IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs | 3 +++ IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs index bab804b6a..bae63ea99 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs @@ -208,6 +208,9 @@ namespace IRaCIS.Application.Contracts public string BlindNameCN { get; set; } = string.Empty; public Guid? SpecialityId { get; set; } = Guid.Empty; + + public string SpecialityCN { get; set; } = string.Empty; + public string Speciality { get; set; } = string.Empty; public string SpecialityOther { get; set; } = string.Empty; public string SpecialityOtherCN { get; set; } = string.Empty; diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs index 506885ae1..ab87ae8e5 100644 --- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs @@ -139,6 +139,8 @@ namespace IRaCIS.Core.Application.Service CreateMap().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital) .ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder))) + .ForMember(d => d.Speciality, u => u.MapFrom(s => s.Doctor.Speciality.Value)) + .ForMember(d => d.SpecialityCN, u => u.MapFrom(s => s.Doctor.Speciality.ValueCN)) .ForMember(d => d.Id, u => u.MapFrom(s => s.Doctor.Id)); CreateMap(); CreateMap();