修改医生生成账号
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-12-25 19:19:41 +08:00
parent 53bcdaa6ce
commit 5cdc5400dc
6 changed files with 35 additions and 28 deletions
@@ -120,7 +120,7 @@ namespace IRaCIS.Core.Application.Service
#region
CreateMap<Doctor, SelectionReviewerDTO>()
.ForMember(d => d.DoctorUserName, u => u.MapFrom(t => t.User.UserName));
.ForMember(d => d.DoctorUserName, u => u.MapFrom(t => t.UserRole.UserName));
CreateMap<Doctor, DoctorDTO>().IncludeMembers(t => t.Hospital).Include<Doctor, SelectionReviewerDTO>()
.ForMember(d => d.AccountUserName, u => u.MapFrom(s => s.EnrollList.Where(t => t.DoctorUserId != null).Select(c => c.DoctorUser.UserName).FirstOrDefault()))
.ForMember(d => d.Department, u => u.MapFrom(s => s.Department.Value))