From 5f1a06086ba1aa01ac88a809fcf01ba0cdea7884 Mon Sep 17 00:00:00 2001 From: JianWeie Date: Fri, 8 Oct 2021 12:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AB=AF=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E6=A3=80=E7=B4=A2=E3=80=90=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E3=80=91=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.WebApi/Controllers/GoodController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs b/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs index 9bbcd28..89a22b5 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs @@ -218,7 +218,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers } if (!string.IsNullOrWhiteSpace(obj.labelId)) { - where = where.And(p => p.labelIds.Contains(obj.labelId)); + where = where.And(p => (',' + p.labelIds.Trim(',') + ',').Contains(',' + obj.labelId.Trim(',') + ',')); } if (!string.IsNullOrWhiteSpace(obj.searchName)) {