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)) {