| | |
| | | private readonly IRepository<User> rep = rep; |
| | | |
| | | /// <summary> |
| | | /// 查询灵工分页列表数据 |
| | | /// 查询简历分页列表数据 |
| | | /// </summary> |
| | | /// <param name="request"></param> |
| | | /// <param name="cancellationToken"></param> |
| | |
| | | var q = rep.AsQueryable().AsNoTracking(); |
| | | if (request.TaskInfoId.HasValue) |
| | | { |
| | | q = q.Where(it => it.TaskInfoUsers.Any(tu => tu.TaskInfoId == request.TaskInfoId)); |
| | | q = q.Where(it => it.EnterpriseEmployees.Any(ee => ee.TaskInfoUsers.Any(tu => tu.TaskInfoId == request.TaskInfoId))); |
| | | } |
| | | if (request.UserExpectJobs.IsNotNull()) |
| | | { |
| | |
| | | PersonalIdentityContent = it.PersonalIdentity.Content, |
| | | EducationalBackgroundCode = it.EducationalBackgroundCode, |
| | | EducationalBackgroundContent = it.EducationalBackground.Content, |
| | | TaskCount = it.TaskInfoUsers.Count(tu => tu.EnterpriseEmployee.HireStatus == EnumTaskUserHireStatus.Pass), |
| | | TaskCount = it.EnterpriseEmployees.Sum(ee => ee.TaskInfoUsers.Count(tu => tu.EnterpriseEmployee.HireStatus == EnumTaskUserHireStatus.Pass)), |
| | | WorkSeniority = it.WorkSeniority, |
| | | WorkExperience = it.WorkExperience, |
| | | }); |