| | |
| | | ApplyCount = it.ApplyCount, |
| | | Remark = it.Remark, |
| | | }); |
| | | if (input.StartDate.HasValue) |
| | | { |
| | | query = query.Where(s => s.CreationTime >= input.StartDate); |
| | | } |
| | | |
| | | if (input.EndDate.HasValue) |
| | | { |
| | | query = query.Where(s => s.CreationTime <= input.EndDate); |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(input.SearchKey)) |
| | | { |
| | | query = query.Where(s => |
| | | s.IdNumber.Contains(input.SearchKey) |
| | | || s.PhoneNumber.Contains(input.SearchKey) |
| | | || s.Name.Contains(input.SearchKey)); |
| | | } |
| | | |
| | | var result = await query.GetPageResult(input.PageModel); |
| | | return result; |
| | | } |