From c2166556ea64f2f31a8fad4a58826bd2d8aa08a8 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 25 Dec 2024 13:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TrialSiteUser/TrialMaintenanceService.cs | 17 ++++++++++++++++- .../Service/TrialSiteUser/_MapConfig2.cs | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) 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();