Commit f77ce263 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

fix

parent 7d814c33
......@@ -1292,7 +1292,8 @@ func (s *wafService) ListListenerHistory(ctx context.Context, query *WafListener
db = db.Where(query.WhereEqCondition)
}
for _, val := range query.WhereLikeCondition {
db = db.Where(fmt.Sprintf("%s LIKE ?", "name"), GetLikeExpr(val)).Or("%s LIKE ?", "listener_name").Or("%s LIKE ?", "gateway_name")
expr := GetLikeExpr(val)
db = db.Where(fmt.Sprintf("%s LIKE ?", "name"), expr).Or("listener_name LIKE ?", expr).Or("gateway_name LIKE ?", expr)
}
if limit > 0 && offset >= 0 {
db = db.Offset(offset).Limit(limit)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment