From d73f83e340e860a69af1536b3eaee62180767c10 Mon Sep 17 00:00:00 2001 From: chenxiangxue <910695411@qq.com> Date: Thu, 27 Jun 2024 09:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/api/StorageController.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/StorageController.cs b/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/StorageController.cs index 8d819ff..4edfa5d 100644 --- a/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/StorageController.cs +++ b/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/StorageController.cs @@ -171,13 +171,6 @@ namespace CompetitionAPI.Controllers.api dic[a.First().INSTRG_DATE.Value.Month]++; }); - //总数 - decimal yearNum = 0; - foreach (var item in dic) - { - yearNum += item.Value; - } - dic.Add(13, yearNum); return Json(Tool.GetJsonWithCode(APICode.Success, dic)); } @@ -210,14 +203,6 @@ namespace CompetitionAPI.Controllers.api dic[a.INSTRG_DATE.Value.Month] += a.BILL_GROSS_WT.Value; }); - //总数 - decimal yearNum = 0; - foreach (var item in dic) - { - yearNum += item.Value; - } - dic.Add(13, yearNum); - return Json(Tool.GetJsonWithCode(APICode.Success, dic)); }