fix 修复keyword bug

This commit is contained in:
timerzz 2024-12-02 20:45:32 +08:00
parent 6def3252d8
commit 436ec577c2

View File

@ -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
}