From 8ba0722979e389a8a2f5835022a7d305ab215c08 Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期四, 24 七月 2025 17:52:26 +0800 Subject: [PATCH] 来料检增加字段 --- StandardInterface/MES.Service/service/QC/XJService.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/StandardInterface/MES.Service/service/QC/XJService.cs b/StandardInterface/MES.Service/service/QC/XJService.cs index 9e9aa40..b94657d 100644 --- a/StandardInterface/MES.Service/service/QC/XJService.cs +++ b/StandardInterface/MES.Service/service/QC/XJService.cs @@ -106,7 +106,7 @@ }).ToList(); } - public List<QsQaItemXj> getPage(XJPageResult queryObj) + public (List<QsQaItemXj> item, int TotalCount) getPage(XJPageResult queryObj) { var db = SqlSugarHelper.GetInstance(); @@ -117,7 +117,8 @@ if (StringUtil.IsNotNullOrEmpty(queryObj.createUser)) lineNo = _baseService.getUserLineNo(queryObj.createUser); - return db + var totalCount = 0; + var data = db .Queryable<QsQaItemXj, Womdaa, MesLine, MesItems>((s, a, c, b) => new JoinQueryInfos( @@ -153,7 +154,9 @@ FcheckResu = s.FcheckResu, Remarks = s.Remarks }).OrderBy(s => s.CreateDate, OrderByType.Desc) - .ToPageList(queryObj.PageIndex, queryObj.Limit); + .ToPageList(queryObj.PageIndex, queryObj.Limit, ref totalCount); + + return (data, totalCount); } -- Gitblit v1.9.3