From 4da743d3d8b1cd3c9c1bd118c74ef1aa297b2a3a Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期五, 28 十一月 2025 16:04:06 +0800
Subject: [PATCH] AddMate增加“是否批次管理”判断

---
 Wms/WMS.BLL/SysServer/MaterialsServer.cs |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Wms/WMS.BLL/SysServer/MaterialsServer.cs b/Wms/WMS.BLL/SysServer/MaterialsServer.cs
index 74ec721..d586460 100644
--- a/Wms/WMS.BLL/SysServer/MaterialsServer.cs
+++ b/Wms/WMS.BLL/SysServer/MaterialsServer.cs
@@ -158,6 +158,10 @@
             mate.IsControlled = string.IsNullOrWhiteSpace(mate.IsControlled) ? "0" : mate.IsControlled; //鏄惁鍙楁帶
             mate.IsInspect = string.IsNullOrWhiteSpace(mate.IsInspect) ? "0" : mate.IsInspect; //鏄惁鍏嶆
             mate.IsPasteCode = string.IsNullOrWhiteSpace(mate.IsPasteCode) ? "0" : mate.IsPasteCode; //鏄惁鍏嶆
+
+            //鏄惁鎵规绠$悊
+            mate.IsLotManage = string.IsNullOrWhiteSpace(mate.IsLotManage) ? "0" : mate.IsLotManage;
+
             mate.Origin = "WMS"; //鏉ユ簮
             mate.IsDel = "0";
             mate.CreateTime = DateTime.Now;
@@ -229,9 +233,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
@@ -239,7 +242,7 @@
         #endregion
 
         #region erp
-        
+
         /// <summary>
         /// 鑾峰彇erp鏁版嵁
         /// </summary>

--
Gitblit v1.8.0