diff --git a/structs/storage/provider-article.go b/structs/storage/provider-article.go index 8f2bec1..f5f454b 100644 --- a/structs/storage/provider-article.go +++ b/structs/storage/provider-article.go @@ -124,7 +124,7 @@ func (g *GetProviderArticleQuery) Scope(db *gorm.DB) *gorm.DB { db = db.Where("trace_ats=?", *g.TraceAts) } if g.Keyword != "" { - db = db.Where("sku_id ilike ?", "%"+g.Keyword+"%", "%"+g.Keyword+"%") + db = db.Where("sku_id ilike ?", "%"+g.Keyword+"%") } return db }