This commit is contained in:
苏尹岚
2020-12-02 11:31:19 +08:00
parent 8e71f3de18
commit 4aa8787fd8
2 changed files with 1 additions and 3 deletions

View File

@@ -754,7 +754,6 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (getUserSerachKeywordResult *G
`
sqlParams := []interface{}{time.Now().AddDate(0, -1, 0)}
err = dao.GetRows(db, &userSearchAll, sql, sqlParams)
fmt.Println("1111111111111111111111111111111", utils.Format4Output(userSearchAll, false))
getUserSerachKeywordResult.AllSpan = userSearchAll
sql2 := `
SELECT keyword, SUM(count) count FROM user_search WHERE created_at > ? AND user_id = ? GROUP BY 1 ORDER BY SUM(count) DESC LIMIT 20
@@ -762,6 +761,5 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (getUserSerachKeywordResult *G
sqlParams2 := []interface{}{time.Now().AddDate(0, -1, 0), userID}
err = dao.GetRows(db, &userSearch, sql2, sqlParams2)
getUserSerachKeywordResult.UserSpan = userSearch
fmt.Println("22222222222222222222222222222222", utils.Format4Output(getUserSerachKeywordResult, false))
return getUserSerachKeywordResult, err
}

View File

@@ -422,7 +422,7 @@ func (c *User2Controller) DeleteUserCityManager() {
// @router /GetUserSerachKeyword [get]
func (c *User2Controller) GetUserSerachKeyword() {
c.callGetUserSerachKeyword(func(params *tUser2GetUserSerachKeywordParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetUserSerachKeyword(params.Ctx)
return retVal, "", err
})
}