From a3a5db87cd11f10efd42eee49e7977c5360e1b55 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期三, 06 八月 2025 15:11:51 +0800 Subject: [PATCH] 首检巡检,入库检验 --- MES.Service/service/QC/XJService.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MES.Service/service/QC/XJService.cs b/MES.Service/service/QC/XJService.cs index 000ce6d..52fe9bc 100644 --- a/MES.Service/service/QC/XJService.cs +++ b/MES.Service/service/QC/XJService.cs @@ -111,6 +111,8 @@ { var db = SqlSugarHelper.GetInstance(); + int totalCount = 0; + var id = Convert.ToDecimal(queryObj.id); string[]? lineNo = null; @@ -154,8 +156,7 @@ FcheckResu = s.FcheckResu, Remarks = s.Remarks }).OrderBy(s => s.CreateDate, OrderByType.Desc); - var totalCount = query.Count(); - var items = query.ToPageList(queryObj.PageIndex, queryObj.Limit); + var items = query.ToPageList(queryObj.PageIndex, queryObj.Limit,ref totalCount); return (items, totalCount); } -- Gitblit v1.9.3