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 ERPSupplierService : IERPSupplierService { private readonly IUnitOfWorkManage _unitOfWorkManage; public ERPSupplierService(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); } } }