Browse Source

no message

xingzai 2 years ago
parent
commit
f2f0318c0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/industrial_management.go

+ 1 - 1
models/industrial_management.go

@@ -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