xingzai 1 anno fa
parent
commit
dc24367e9f
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      controllers/report_billboard.go
  2. 1 1
      models/industrial_management.go

+ 2 - 2
controllers/report_billboard.go

@@ -55,7 +55,7 @@ func (this *MobileReportBillboardController) ReadList() {
 	}
 	list := make([]*models.ArticleListResp, 0)
 	// 阅读飙升榜
-	if source == 2 {
+	if source == 1 {
 		var topCond string
 		var topPars []interface{}
 		if chartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
@@ -93,7 +93,7 @@ func (this *MobileReportBillboardController) ReadList() {
 		}
 	}
 	// 报告收藏榜
-	if source == 1 {
+	if source == 2 {
 		var collectCond string
 		var collectPars []interface{}
 

+ 1 - 1
models/industrial_management.go

@@ -359,7 +359,7 @@ func GetTopIndustryFollowData(startSize, pageSize int, condition string, pars []
 	sql += ` GROUP BY
 				man.industrial_management_id
 			ORDER BY
-				man.one_month_follow_num DESC
+				man.one_month_follow_num DESC , man.industrial_management_id DESC 
 			LIMIT ?,?`
 	_, err = orm.NewOrm().Raw(sql, pars, startSize, pageSize).QueryRows(&list)
 	return