当前登录用户得课题组
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-09-08 15:26:08 +08:00
parent 26e7305bcf
commit aafc1cd064
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ namespace IRaCIS.Application.Contracts
{ {
public string Name { get; set; } public string Name { get; set; }
public string Code { get; set; } public string CallingAE { get; set; } = string.Empty;
} }
public class UserHospitalGroupInfo public class UserHospitalGroupInfo

View File

@ -74,7 +74,7 @@ namespace IRaCIS.Core.Application.Service
.ForMember(d => d.UserType, u => u.MapFrom(t => t.UserTypeName)); .ForMember(d => d.UserType, u => u.MapFrom(t => t.UserTypeName));
CreateMap<IdentityUser, UserDetailDTO>() CreateMap<IdentityUser, UserDetailDTO>()
.ForMember(d => d.HospitalGroupList, u => u.MapFrom(s => s.IdentityUserHospitalGroupList.Select(t => new UserHospitalGroupInfoWithName() { HospitalGroupId = t.HospitalGroupId, IsDisabled = t.IsDisabled, Name = t.HospitalGroup.Name,Code=t.HospitalGroup.Code }))); .ForMember(d => d.HospitalGroupList, u => u.MapFrom(s => s.IdentityUserHospitalGroupList.Select(t => new UserHospitalGroupInfoWithName() { HospitalGroupId = t.HospitalGroupId, IsDisabled = t.IsDisabled, Name = t.HospitalGroup.Name, CallingAE = t.HospitalGroup.CallingAE })));
CreateMap<IdentityUser, UserListDTO>() CreateMap<IdentityUser, UserListDTO>()