mirror of https://github.com/1Panel-dev/1Panel
parent
8d3fd42197
commit
3acd449787
|
@ -92,7 +92,7 @@ func (c *CommonRepo) WithLikeName(name string) DBOption {
|
|||
if len(name) == 0 {
|
||||
return g
|
||||
}
|
||||
return g.Where("name like ?", "%"+name+"%")
|
||||
return g.Where("name like ? or short_desc_zh like ? or short_desc_en like ?", "%"+name+"%", "%"+name+"%", "%"+name+"%")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue