a
This commit is contained in:
@@ -753,6 +753,7 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (getUserSerachKeywordResult *G
|
|||||||
SELECT keyword, SUM(count) count FROM user_search WHERE created_at > ? GROUP BY 1 ORDER BY SUM(count) DESC LIMIT 20
|
SELECT keyword, SUM(count) count FROM user_search WHERE created_at > ? GROUP BY 1 ORDER BY SUM(count) DESC LIMIT 20
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{time.Now().AddDate(0, -1, 0)}
|
sqlParams := []interface{}{time.Now().AddDate(0, -1, 0)}
|
||||||
|
fmt.Println(utils.Format4Output(userSearchAll, false))
|
||||||
err = dao.GetRows(db, &userSearchAll, sql, sqlParams)
|
err = dao.GetRows(db, &userSearchAll, sql, sqlParams)
|
||||||
getUserSerachKeywordResult.AllSpan = userSearchAll
|
getUserSerachKeywordResult.AllSpan = userSearchAll
|
||||||
sql2 := `
|
sql2 := `
|
||||||
|
|||||||
Reference in New Issue
Block a user