From 436ec577c266a99bee24e0745277f3cd3d1531bc Mon Sep 17 00:00:00 2001 From: timerzz Date: Mon, 2 Dec 2024 20:45:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8Dkeyword=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/storage/provider-article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }