using SharpCompress.Compressors.ADC; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using WIDESEA_IStorageBasicServices.Stock; using WIDESEA_Model.Models.ERP; namespace WIDESEA_StorageBasicServices { public partial class ERPMaterialService : IERPMaterialService { private readonly IUnitOfWorkManage _unitOfWorkManage; public ERPMaterialService(IUnitOfWorkManage unitOfWorkManage) { _unitOfWorkManage = unitOfWorkManage; } public virtual PageGridData<用友编码_ST> GetPageData(PageDataOptions options) { string wheres = options.ValidatePageOptions(typeof(用友编码_ST).GetProperties()); //获取排序字段 int totalCount = 0; var data = SqlSugarHelper.DBERP.Queryable<用友编码_ST>() .WhereIF(!wheres.IsNullOrEmpty(), wheres) .ToPageList(options.Page, options.Rows, ref totalCount); return new PageGridData<用友编码_ST>(totalCount, data); } } }