diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialMaintenanceService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialMaintenanceService.cs index 7f1053f77..535345baa 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialMaintenanceService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialMaintenanceService.cs @@ -39,7 +39,22 @@ namespace IRaCIS.Core.Application.Service .WhereIf(inQuery.IsDeleted != null, t => t.IsDeleted == inQuery.IsDeleted) .WhereIf(!string.IsNullOrWhiteSpace(inQuery.OrganizationName), t => t.IdentityUser.OrganizationName.Contains(inQuery.OrganizationName)) .WhereIf(!string.IsNullOrWhiteSpace(inQuery.UserRealName), t => (t.IdentityUser.FullName).Contains(inQuery.UserRealName)) - .ProjectTo(_mapper.ConfigurationProvider); + .Select(t => new TrialIdentityUserDto() + { + Id=t.Id, + TrialId=t.TrialId, + IsDeleted=t.IsDeleted, + CreateTime=t.CreateTime, + EMail=t.IdentityUser.EMail, + FullName=t.IdentityUser.FullName, + IdentityUserId=t.IdentityUserId, + JoinTime=t.JoinTime, + OrganizationName=t.IdentityUser.OrganizationName, + Phone=t.IdentityUser.Phone, + UpdateTime=t.UpdateTime, + UserName=t.IdentityUser.UserName, + RemoveTime=t.RemoveTime + }); return await query.ToPagedListAsync(inQuery, nameof(TrialIdentityUserDto.UpdateTime)); } diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/_MapConfig2.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/_MapConfig2.cs index e509f1513..452c94026 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/_MapConfig2.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/_MapConfig2.cs @@ -54,7 +54,8 @@ namespace IRaCIS.Core.Application.Service CreateMap(); - CreateMap(); + //CreateMap(); + CreateMap();