| | |
| | | model.TaskCount = await rep.Change<TaskInfoUser>().AsQueryable().AsNoTracking() |
| | | .Where(it => it.UserId == model.Id && it.HireStatus == EnumTaskUserHireStatus.Pass) |
| | | .CountAsync(); |
| | | if (model.CityCode.IsNotNull()) |
| | | { |
| | | model.CompleteRate += 20; |
| | | } |
| | | if (model.JobSeekingStatus.HasValue) |
| | | { |
| | | model.CompleteRate += 20; |
| | | } |
| | | if (model.UserCredentials.IsNotNull()) |
| | | { |
| | | model.CompleteRate += 20; |
| | | } |
| | | if (model.WorkExperience.IsNotNull() || model.WorkSeniority.IsNotNull()) |
| | | { |
| | | model.CompleteRate += 20; |
| | | } |
| | | if (model.Weight.HasValue || model.Height.HasValue || model.Photos.IsNotNull()) |
| | | { |
| | | model.CompleteRate += 20; |
| | | } |
| | | return model; |
| | | } |
| | | |