From c582e460986388dec3c337f3fbc2b8cf616c6e4a Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 12 八月 2025 19:07:26 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.UserServer.Application/EnterpriseEmployees/Queries/EnterpriseEmployeeQueryHandler.cs | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/FlexJobApi.UserServer.Application/EnterpriseEmployees/Queries/EnterpriseEmployeeQueryHandler.cs b/FlexJobApi.UserServer.Application/EnterpriseEmployees/Queries/EnterpriseEmployeeQueryHandler.cs index a0e2dc6..3a7ef18 100644 --- a/FlexJobApi.UserServer.Application/EnterpriseEmployees/Queries/EnterpriseEmployeeQueryHandler.cs +++ b/FlexJobApi.UserServer.Application/EnterpriseEmployees/Queries/EnterpriseEmployeeQueryHandler.cs @@ -70,7 +70,31 @@ { q = q.Where(it => it.EnterpriseSignContractStatus == request.EnterpriseSignContractStatus); } - var s = q.ProjectToType<GetEnterpriseEmployeesQueryResultItem>(); + var s = q.Select(it => new GetEnterpriseEmployeesQueryResultItem + { + Id = it.Id, + Name = it.Name, + Identity = it.Identity, + Gender = it.Gender, + Age = it.Age, + ContactPhoneNumber = it.ContactPhoneNumber, + UserIsReal = it.User.IsReal, + RealMethod = it.User.RealMethod, + PersonalIdentityCode = it.User.PersonalIdentityCode, + PersonalIdentityContent = it.User.PersonalIdentity.Content, + EducationalBackgroundCode = it.User.EducationalBackgroundCode, + EducationalBackgroundContent = it.User.EducationalBackground.Content, + TaskCount = it.User.EnterpriseEmployees.Where(ee => ee.HireStatus == EnumTaskUserHireStatus.Pass).Sum(ee => ee.TaskInfoUsers.Count()), + WorkSeniority = it.User.WorkSeniority, + WorkExperience = it.User.WorkExperience, + HireStatus = it.HireStatus, + UserSignContractStatus = it.UserSignContractStatus, + HireTime = it.HireTime, + UserRealTime = it.User.RealTime, + UserSignContractTime = it.UserSignContractTime, + EnterpriseSignContractStatus = it.EnterpriseSignContractStatus, + EnterpriseSignContractTime = it.EnterpriseSignContractTime + }); return await request.PageModel.GetPagedListAsync<GetEnterpriseEmployeesQueryResult, GetEnterpriseEmployeesQueryResultItem>(s, cancellationToken); } } -- Gitblit v1.9.1