Sfoglia il codice sorgente

Merge branch 'cygx_fix_need_11-30' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 anni fa
parent
commit
3d75c2a472
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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