From 36b59980ef36d1dc8ef765f2911c9a1c15c7e98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Thu, 15 Aug 2024 15:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E9=A6=96=E9=A1=B5=E9=A1=B5=E9=9D=A2=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=86=85=E6=9C=8D=E5=8A=A1=E5=95=86=E5=93=81=E5=B7=B2=E4=B8=8B?= =?UTF-8?q?=E6=9E=B6=E6=88=96=E5=94=AE=E7=BD=84=E5=95=86=E5=93=81=E7=9A=84?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs b/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs index ac11b32d..e0295174 100644 --- a/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs +++ b/CoreCms.Net.Services/Shop/CoreCmsPagesServices.cs @@ -638,7 +638,7 @@ namespace CoreCms.Net.Services if (ids.Any()) { - var serviceObj = await _servicesServices.QueryListByClauseAsync(p => ids.Contains(p.id), p => p.id, OrderByType.Asc, true, true); + var serviceObj = await _servicesServices.QueryListByClauseAsync(p => ids.Contains(p.id) && p.status == (int)GlobalEnumVars.ServicesStatus.Shelve && p.amount > 0, p => p.id, OrderByType.Asc, true, true); foreach (var jToken in result) { var ss = (JObject)jToken;