|
@@ -380,7 +380,7 @@ func GetThemeHeatList(permissionName string, userId int, condition string) (item
|
|
|
m.article_read_num,
|
|
|
date_format( MAX( a.publish_date ), '%Y-%m-%d' ) AS publish_date,
|
|
|
( SELECT count( 1 ) FROM cygx_industry_fllow AS f WHERE f.industrial_management_id = m.industrial_management_id AND user_id =? AND f.type = 1 ) AS fllow_num,
|
|
|
- ( SELECT count( 1 ) FROM cygx_article_history_record_newpv AS h WHERE h.article_id IN (SELECT article_id FROM cygx_industrial_article_group_management WHERE industrial_management_id = m.industrial_management_id )) + ( SELECT count( 1 ) FROM cygx_activity_meet_detail_log AS la WHERE la.activity_id IN (SELECT activity_id FROM cygx_industrial_activity_group_management WHERE industrial_management_id = m.industrial_management_id )) AS sum_num
|
|
|
+ m.article_read_num + ( SELECT count( 1 ) FROM cygx_activity_meet_detail_log AS la WHERE la.activity_id IN (SELECT activity_id FROM cygx_industrial_activity_group_management WHERE industrial_management_id = m.industrial_management_id )) AS sum_num
|
|
|
FROM
|
|
|
cygx_industrial_management AS m
|
|
|
LEFT JOIN cygx_industrial_article_group_management AS mg ON mg.industrial_management_id = m.industrial_management_id
|