huangxiaoqiang
2025-11-17 b07472f884708a6bfdf63d999004bbf0bb5f00a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
        }
    }
}