From 986bbf207ec3ecab9dfbf3fed50b565d2a2676fc Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期六, 19 七月 2025 14:48:27 +0800
Subject: [PATCH] 来料检上传附件

---
 StandardInterface/MESApplication/Controllers/QC/XJController.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/StandardInterface/MESApplication/Controllers/QC/XJController.cs b/StandardInterface/MESApplication/Controllers/QC/XJController.cs
index ef25d6b..40d2bdc 100644
--- a/StandardInterface/MESApplication/Controllers/QC/XJController.cs
+++ b/StandardInterface/MESApplication/Controllers/QC/XJController.cs
@@ -122,6 +122,8 @@
             dynamic resultInfos = new ExpandoObject();
             var tbBillList =
                 new XJService().getBoardItem(lineNo);
+            // 鎸� itemNo 鍘婚噸
+            tbBillList = tbBillList.GroupBy(x => x.ItemNo).Select(g => g.First()).ToList();
             resultInfos.tbBillList = tbBillList;
             return new ResponseResult
             {
@@ -236,14 +238,14 @@
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            var tbBillList =
-                new XJService().getPage(queryObj);
-            resultInfos.tbBillList = tbBillList;
+            var (item, totalCount) = new XJService().getPage(queryObj);
+            resultInfos.tbBillList = item;
             return new ResponseResult
             {
                 status = 0,
                 message = "OK",
-                data = resultInfos
+                data = resultInfos,
+                TotalCount = totalCount
             };
         }
         catch (Exception ex)

--
Gitblit v1.9.3