/// <summary> /// 分页获取 /// </summary> /// <param name="employeeElementPageRequestDto"></param> /// <returns></returns> public async Task <PageData> GetPageListAsync(EmployeeElementPageRequestDto employeeElementPageRequestDto) { var pageData = new PageData(employeeElementPageRequestDto.PageIndex, employeeElementPageRequestDto.PageSize); var list = await _employeeElementRespository.WherePaged(pageData, e => e.IsDelete == false, e => e.CreateDate, false); pageData.Data = list.MapToList <EmployeeElement, EmployeeElementQueryDto>().ToList(); return(pageData); }
/// <summary> /// 分页获取 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task <PageData> GetPageList(EmployeeElementPageRequestDto input) { input.InitRequest(); return(await _employeeElementAppService.GetPageListAsync(input)); }