From e4b5efd4eb312c580b770e08f51a5644187a9c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 2 Dec 2020 09:32:25 +0800 Subject: [PATCH] aa --- business/jxstore/cms/user2.go | 2 +- business/model/dao/dao_job.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/user2.go b/business/jxstore/cms/user2.go index 99e88332c..6dc6fdd9d 100644 --- a/business/jxstore/cms/user2.go +++ b/business/jxstore/cms/user2.go @@ -747,7 +747,7 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (err error) { // userID = ctx.GetUserID() // ) // sql := ` - // SELECT SUM(count) FROM user_search WHERE + // SELECT SUM(count) count FROM user_search WHERE // ` return err } diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index e71e90558..8ae92eb8e 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -409,6 +409,8 @@ func GetUserSearch(db *DaoDB, userID, keyword string) (userSearchs []*model.User sql += ` AND key = ?` sqlParams = append(sqlParams, keyword) } + fmt.Println(sql) + fmt.Println(sqlParams) err = GetRows(db, &userSearchs, sql, sqlParams) return userSearchs, err }