From cced7450497d0febcbac8b7f39dda4703369d734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Mon, 10 Mar 2025 18:33:07 +0800 Subject: [PATCH] =?UTF-8?q?GP12=E6=8A=A5=E8=A1=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/qc/GP12/QcGp12ServiceStatisticsController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ZR.Admin.WebApi/Controllers/mes/qc/GP12/QcGp12ServiceStatisticsController.cs b/ZR.Admin.WebApi/Controllers/mes/qc/GP12/QcGp12ServiceStatisticsController.cs index eb8b0036..7d89e7c0 100644 --- a/ZR.Admin.WebApi/Controllers/mes/qc/GP12/QcGp12ServiceStatisticsController.cs +++ b/ZR.Admin.WebApi/Controllers/mes/qc/GP12/QcGp12ServiceStatisticsController.cs @@ -84,6 +84,10 @@ namespace ZR.Admin.WebApi.Controllers totalDamoNumber += Convert.ToInt32(item.DamoNumber); totalBaofeiNumber += Convert.ToInt32(item.BaofeiNumber); totalListCount += 1; + + // 移除不要的属性 + itemDict["DynamicProperties"] = null; + itemDict["GroupDefectJson"] = ""; return itemDict; }) .ToList(); @@ -119,7 +123,7 @@ namespace ZR.Admin.WebApi.Controllers var pageList = resultWithDefects.Skip((parm.PageNum - 1) * parm.PageSize).Take(parm.PageSize).ToList(); // 返回包含数据和统计数据的对象 - var result = new { list = resultWithDefects, statistics = statistics, pageList,total=resultWithDefects.Count }; + var result = new { statistics = statistics, pageList ,total = resultWithDefects.Count }; return SUCCESS(result); }