From fc9cba5f058089887aa7061d2e6b4006b9e04a9a Mon Sep 17 00:00:00 2001
From: 陈勇 <竞男@ASUNA>
Date: 星期二, 10 三月 2026 09:46:43 +0800
Subject: [PATCH] 同步

---
 项目代码/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/Dt_PalletStockInfoService.cs |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/Dt_PalletStockInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/Dt_PalletStockInfoService.cs"
index 6647931..4f5c4c0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/Dt_PalletStockInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/Dt_PalletStockInfoService.cs"
@@ -6,6 +6,8 @@
 using System.Drawing.Printing;
 using System.Linq.Expressions;
 using WIDESEA_Core;
+using WIDESEA_Core.Enums;
+using WIDESEA_DTO;
 
 namespace WIDESEA_StorageBasicService;
 
@@ -14,4 +16,46 @@
     public Dt_PalletStockInfoService(IDt_PalletStockInfoRepository BaseDal) : base(BaseDal)
     {
     }
+
+    public override PageGridData<Dt_PalletStockInfo> GetPageData(PageDataOptions options)
+    {
+        string wheres = ValidatePageOptions(options);
+        //鑾峰彇鎺掑簭瀛楁
+        Dictionary<string, SqlSugar.OrderByType> orderbyDic = GetPageDataSort(options, TProperties);
+        List<OrderByModel> orderByModels = new List<OrderByModel>();
+        foreach (var item in orderbyDic)
+        {
+            OrderByModel orderByModel = new()
+            {
+                FieldName = item.Key,
+                OrderByType = item.Value
+            };
+            orderByModels.Add(orderByModel);
+        }
+
+
+        int totalCount = 0;
+        List<SearchParameters> searchParametersList = new List<SearchParameters>();
+        if (!string.IsNullOrEmpty(options.Wheres))
+        {
+            try
+            {
+                searchParametersList = options.Wheres.DeserializeObject<List<SearchParameters>>();
+                options.Filter = searchParametersList;
+            }
+            catch { }
+        }
+
+        var data = BaseDal.Db.Queryable<Dt_PalletStockInfo>()
+            .Includes(x => x.CarBodyInfo)
+            //.Includes(x => x.LocationInfo)
+            //.WhereIF(!wheres.IsNullOrEmpty(), wheres)
+            //.WhereIF(locationStatus != null, locationStatus)
+            //.WhereIF(roadwayNo != null, roadwayNo)
+            //.WhereIF(materielCode != null, materielCode)
+            .OrderBy(orderByModels)
+            .ToPageList(options.Page, options.Rows, ref totalCount);
+        //new PageGridData<Dt_PalletStockInfo>(totalCount, data);
+        return new PageGridData<Dt_PalletStockInfo>(totalCount, data);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3