feat: 应用搜索支持描述字段 (#3473)

Refs https://github.com/1Panel-dev/1Panel/issues/2041
pull/3479/head
zhengkunwang 11 months ago committed by GitHub
parent 8d3fd42197
commit 3acd449787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save