|
@@ -176,7 +176,7 @@ func GetArticleUserBrowseHistoryCount(userId int, endDate string) (count int, er
|
|
|
|
|
|
func GetArticleUserBrowseHistoryList(startSize, pageSize, userId int, endDate string) (items []*ArticleInterviewApplyList, err error) {
|
|
|
sql := `SELECT a.* FROM cygx_article_history_record AS a
|
|
|
- WHERE a.user_id=? AND a.create_time>=?
|
|
|
+ WHERE a.user_id=? AND a.create_time>=? GROUP BY a.article_id
|
|
|
ORDER BY a.modify_time DESC LIMIT ?,? `
|
|
|
_, err = orm.NewOrm().Raw(sql, userId, endDate, startSize, pageSize).QueryRows(&items)
|
|
|
return
|