修改医生bug

IRC_NewDev
hang 2024-02-01 11:38:28 +08:00
parent fadd8a7f79
commit 46818d9a02
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ namespace IRaCIS.Core.Application.Service
CreateMap<Doctor, SpecialtyDTO>()
.ForMember(o => o.Speciality, t => t.MapFrom(u => u.Speciality.Value))
.ForMember(o => o.SpecialityCN, t => t.MapFrom(u => u.Speciality.ValueCN))
.ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder)));
CreateMap<SpecialtyCommand, Doctor>();