From 3c5a57e55861a305b53089c91ef12c9edfbdafd0 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期二, 18 十一月 2025 11:46:40 +0800
Subject: [PATCH] 托盘中含有的执行中的单据GetRunSoNoticeList增加SONo降序排序

---
 Wms/WMS.BLL/SysServer/MaterialsServer.cs |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Wms/WMS.BLL/SysServer/MaterialsServer.cs b/Wms/WMS.BLL/SysServer/MaterialsServer.cs
index 74ec721..d7dd7f6 100644
--- a/Wms/WMS.BLL/SysServer/MaterialsServer.cs
+++ b/Wms/WMS.BLL/SysServer/MaterialsServer.cs
@@ -229,9 +229,8 @@
         /// <returns></returns>
         public async Task<List<SysPackag>> GetPackagList(int page)
         {
-            int pageSize = 3000;
-            int skipCount = pageSize * (page - 1);
-            return await Db.Queryable<SysPackag>().Where(s => s.IsDel == "0").Skip(skipCount).Take(pageSize).ToListAsync();
+            int pageSize = 1000;
+            return await Db.Queryable<SysPackag>().Where(s => s.IsDel == "0").ToPageListAsync(page, pageSize);
         }
 
         #endregion

--
Gitblit v1.8.0