This commit is contained in:
苏尹岚
2020-12-02 09:32:25 +08:00
parent ad02997ff7
commit e4b5efd4eb
2 changed files with 3 additions and 1 deletions

View File

@@ -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
}

View File

@@ -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
}