|
@@ -62,7 +62,7 @@ func GetIndustrialManagementAll(uid int, condition, orderSrt string, startSize,
|
|
|
o := orm.NewOrm()
|
|
|
sql := `SELECT
|
|
|
man.*,re.chart_permission_name as permission_name,
|
|
|
- man.new_art_publish_date AS update_time , MIN(art.publish_date) AS min_report_time,(
|
|
|
+ MAX(art.publish_date) AS update_time , MIN(art.publish_date) AS min_report_time,(
|
|
|
SELECT COUNT( 1 ) FROM cygx_article_history_record AS rec WHERE rec.user_id = ` + strconv.Itoa(uid) + ` AND rec.article_id = art.article_id ) AS readnum ,
|
|
|
(SELECT COUNT( 1 ) FROM cygx_industry_fllow AS f WHERE f.user_id = ` + strconv.Itoa(uid) + ` AND f.industrial_management_id = man.industrial_management_id AND f.type = 1) AS is_follow
|
|
|
FROM
|