From 3acd44978730b5a6f9a22eca0ed0c298a8393bca Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 28 Dec 2023 17:53:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8F=8F=E8=BF=B0=E5=AD=97=E6=AE=B5=20(#3473?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/2041 --- backend/app/repo/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/repo/common.go b/backend/app/repo/common.go index e6cf0b23f..9eb8a0a50 100644 --- a/backend/app/repo/common.go +++ b/backend/app/repo/common.go @@ -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+"%") } }