mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-17 22:28:45 +08:00
feat: 应用搜索支持描述字段 (#3473)
Refs https://github.com/1Panel-dev/1Panel/issues/2041
This commit is contained in:
parent
8d3fd42197
commit
3acd449787
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue