|
@@ -203,7 +203,7 @@ func GetArticleUserCollectList(startSize, pageSize, userId int) (items []*Articl
|
|
|
1 AS is_special,
|
|
|
a.tags AS special_tags,
|
|
|
( SELECT count( 1 ) FROM cygx_yanxuan_special_record AS h WHERE h.yanxuan_special_id = a.id ) AS pv,
|
|
|
- ( SELECT count( 1 ) FROM cygx_yanxuan_special_collect AS ac INNER JOIN wx_user as u ON u.user_id = ac.user_id WHERE ac.yanxuan_special_id = a.id ) AS collect_num,
|
|
|
+ ( SELECT count( 1 ) FROM cygx_yanxuan_special_collect AS ac WHERE ac.yanxuan_special_id = a.id ) AS collect_num,
|
|
|
( SELECT count( 1 ) FROM cygx_yanxuan_special_collect AS ac WHERE ac.yanxuan_special_id = a.id AND user_id = ? ) AS my_collect_num,
|
|
|
a.type AS special_type,
|
|
|
a.user_id AS user_id,
|