Skip to content

Commit

Permalink
query
Browse files Browse the repository at this point in the history
  • Loading branch information
starlying committed May 13, 2020
1 parent 187db19 commit bdee45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SiteServer.Web/Controllers/V1/ContentsController.Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit bdee45e

Please sign in to comment.