1
huangxiaoqiang
2025-10-21 6c663b92b0078aa89657df22ec188dff65599f04
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
33
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 ERPStockInfoService: IERPStockInfoService
    {
        private readonly IUnitOfWorkManage _unitOfWorkManage;
        public ERPStockInfoService(IUnitOfWorkManage unitOfWorkManage)
        {
            _unitOfWorkManage = unitOfWorkManage;
        }
        public virtual PageGridData<WMS_用友库存一览表_ST> GetPageData(PageDataOptions options)
        {
            string wheres = options.ValidatePageOptions(typeof(WMS_用友库存一览表_ST).GetProperties());
            //获取排序字段
            int totalCount = 0;
            var data = SqlSugarHelper.DBERP.Queryable<WMS_用友库存一览表_ST>()
                .WhereIF(!wheres.IsNullOrEmpty(), wheres)
                .ToPageList(options.Page, options.Rows, ref totalCount);
            new PageGridData<WMS_用友库存一览表_ST>(totalCount, data);
            return new PageGridData<WMS_用友库存一览表_ST>(totalCount, data);
        }
    }
}