From ab43b53a9257daadad2027e1a349d4ec03c41eb7 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期五, 25 七月 2025 13:08:29 +0800 Subject: [PATCH] Update XJService getPage method to return total count like LljService --- StandardPda/MES.Service/service/BasicData/MesItemsManager.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/StandardPda/MES.Service/service/BasicData/MesItemsManager.cs b/StandardPda/MES.Service/service/BasicData/MesItemsManager.cs index 2c1c9bb..cafaa5e 100644 --- a/StandardPda/MES.Service/service/BasicData/MesItemsManager.cs +++ b/StandardPda/MES.Service/service/BasicData/MesItemsManager.cs @@ -1,5 +1,4 @@ 锘縰sing MES.Service.DB; -using MES.Service.Dto.service; using MES.Service.Dto.webApi; using MES.Service.Modes; using MES.Service.util; @@ -149,6 +148,8 @@ CreateDate = DateTime.Now, Company = "1000", Factory = "1000", + WarehouseKeeper = item.WarehouseKeeper, + Merchandiser = item.Merchandiser }; list.Add(items); } @@ -160,7 +161,7 @@ { DeleteItem(db, listItem); - var insert = db.Insertable(listItem).IgnoreColumns(true) + var insert = db.Insertable(listItem).PageSize(1).IgnoreColumnsNull() .ExecuteCommand(); return insert > 0; } -- Gitblit v1.9.3