diff --git a/SiteServer.Web/Controllers/V1/ContentsController.Utils.cs b/SiteServer.Web/Controllers/V1/ContentsController.Utils.cs index fcb06871d..f1aee712d 100644 --- a/SiteServer.Web/Controllers/V1/ContentsController.Utils.cs +++ b/SiteServer.Web/Controllers/V1/ContentsController.Utils.cs @@ -96,11 +96,11 @@ private Query GetQuery(int siteId, int? channelId, QueryRequest request) } else if (StringUtils.EqualsIgnoreCase(where.Operator, OpLike)) { - query.WhereLike(where.Column, where.Value); + query.WhereLike(where.Column, $"%{where.Value}%"); } else if (StringUtils.EqualsIgnoreCase(where.Operator, OpNotLike)) { - query.WhereNotLike(where.Column, where.Value); + query.WhereNotLike(where.Column, $"%{where.Value}%"); } else {