From 5f467d39b6bcca41c0720493c1f6e68c77ea89e4 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期日, 20 七月 2025 18:08:51 +0800 Subject: [PATCH] ftp服务器上传 --- 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