From 090ec3b62d3a53e2e7452e6537525b3b9896e870 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 10 Mar 2025 16:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/CQMS/APIQuantityManagementService.cs | 6 +++--- SGGL/WebAPI/Filter/TestPermissionAttribute.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SGGL/BLL/API/CQMS/APIQuantityManagementService.cs b/SGGL/BLL/API/CQMS/APIQuantityManagementService.cs index 3ebe106..9676a94 100644 --- a/SGGL/BLL/API/CQMS/APIQuantityManagementService.cs +++ b/SGGL/BLL/API/CQMS/APIQuantityManagementService.cs @@ -31,10 +31,10 @@ namespace BLL q = q.Where(x => x.ProjectContent.Contains(projectContent)); } List dayInputItems = new List(); - var list = q.OrderByDescending(x => x.Date).ToList(); - if (list.Count > 0) + q = q.OrderByDescending(x => x.Date); + if (q.Count() > 0) { - foreach (var x in list) + foreach (var x in q) { DayInputItem dayInputItem = new DayInputItem(); dayInputItem.DayInputId = x.DayInputId; diff --git a/SGGL/WebAPI/Filter/TestPermissionAttribute.cs b/SGGL/WebAPI/Filter/TestPermissionAttribute.cs index 86bd99e..d824ed9 100644 --- a/SGGL/WebAPI/Filter/TestPermissionAttribute.cs +++ b/SGGL/WebAPI/Filter/TestPermissionAttribute.cs @@ -178,7 +178,7 @@ namespace WebAPI.Filter "AwardStandards*getAwardStandardsListById", "Rectify*getRectifyList", "ImageRecognition*getImageContent", - + "QuantityManagement*dayInputList", }; ///