fix 修复keyword bug
This commit is contained in:
parent
6def3252d8
commit
436ec577c2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user