Browse Source

no message

xingzai 4 years ago
parent
commit
8b192b6e28
1 changed files with 1 additions and 2 deletions
  1. 1 2
      models/article.go

+ 1 - 2
models/article.go

@@ -294,12 +294,11 @@ func GetPermissionMappingCategoryID() (item []*PermissionMappingCategoryRep, err
 //检查用户是否阅读某一分类最新文章
 func GetUserIsReadThisNewCategoryArticleCount(categoryId, uid int) (count int, err error) {
 	sqlCount := `SELECT COUNT(1) as count FROM
-	cygx_article_view_record 
+	cygx_article_history_record 
 	WHERE
 	article_id = ( SELECT article_id FROM cygx_article WHERE category_id = ? ORDER BY publish_date DESC LIMIT 0, 1 )
 	AND user_id = ?`
 	o := orm.NewOrm()
-
 	err = o.Raw(sqlCount, categoryId, uid).QueryRow(&count)
 	return
 }