From ee27ef9519ad156be226e8d00ddeb402aa1e8a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 3 Feb 2020 11:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/event.go b/business/model/dao/event.go index f842f1cf1..ad8377994 100644 --- a/business/model/dao/event.go +++ b/business/model/dao/event.go @@ -100,7 +100,7 @@ func GetOperateEvents(db *DaoDB, name string, apiFunctions []string, operateType sql += "a.api_function IN (" + GenQuestionMarks(len(apiList)) + ") OR" } sql += " a.err_msg LIKE ? OR b.thing_id LIKE ? OR b.store_id LIKE ? OR c.name LIKE ?)" - sqlParams = append(sqlParams, "%"+keyword+"%") + sqlParams = append(sqlParams, "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%") } sql += ` ORDER BY a.created_at DESC