a
This commit is contained in:
@@ -754,7 +754,6 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (getUserSerachKeywordResult *G
|
|||||||
`
|
`
|
||||||
sqlParams := []interface{}{time.Now().AddDate(0, -1, 0)}
|
sqlParams := []interface{}{time.Now().AddDate(0, -1, 0)}
|
||||||
err = dao.GetRows(db, &userSearchAll, sql, sqlParams)
|
err = dao.GetRows(db, &userSearchAll, sql, sqlParams)
|
||||||
fmt.Println("1111111111111111111111111111111", utils.Format4Output(userSearchAll, false))
|
|
||||||
getUserSerachKeywordResult.AllSpan = userSearchAll
|
getUserSerachKeywordResult.AllSpan = userSearchAll
|
||||||
sql2 := `
|
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
|
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}
|
sqlParams2 := []interface{}{time.Now().AddDate(0, -1, 0), userID}
|
||||||
err = dao.GetRows(db, &userSearch, sql2, sqlParams2)
|
err = dao.GetRows(db, &userSearch, sql2, sqlParams2)
|
||||||
getUserSerachKeywordResult.UserSpan = userSearch
|
getUserSerachKeywordResult.UserSpan = userSearch
|
||||||
fmt.Println("22222222222222222222222222222222", utils.Format4Output(getUserSerachKeywordResult, false))
|
|
||||||
return getUserSerachKeywordResult, err
|
return getUserSerachKeywordResult, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -422,7 +422,7 @@ func (c *User2Controller) DeleteUserCityManager() {
|
|||||||
// @router /GetUserSerachKeyword [get]
|
// @router /GetUserSerachKeyword [get]
|
||||||
func (c *User2Controller) GetUserSerachKeyword() {
|
func (c *User2Controller) GetUserSerachKeyword() {
|
||||||
c.callGetUserSerachKeyword(func(params *tUser2GetUserSerachKeywordParams) (retVal interface{}, errCode string, err error) {
|
c.callGetUserSerachKeyword(func(params *tUser2GetUserSerachKeywordParams) (retVal interface{}, errCode string, err error) {
|
||||||
|
retVal, err = cms.GetUserSerachKeyword(params.Ctx)
|
||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user