Browse Source

no message

xingzai 2 years ago
parent
commit
e72e25864b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      controllers/research.go

+ 2 - 4
controllers/research.go

@@ -2,7 +2,6 @@ package controllers
 
 import (
 	"encoding/json"
-	"fmt"
 	"github.com/rdlucklib/rdluck_tools/paging"
 	"hongze/hongze_cygx/models"
 	"hongze/hongze_cygx/services"
@@ -213,7 +212,6 @@ func (this *ResearchController) HotList() {
 			return
 		}
 	}
-	fmt.Println(mapNew)
 	for k, v := range list {
 		list[k].IsNew = mapNew[v.IndustrialManagementId]
 		list[k].IsHot = mapHot[v.IndustrialManagementId]
@@ -292,11 +290,11 @@ func (this *ResearchController) KolList() {
 	if themeType == 2 {
 		conditionOrder = `ORDER BY publish_date DESC `
 	} else {
-		conditionOrder = `ORDER BY fllow_num DESC `
+		conditionOrder = `ORDER BY sum_num DESC `
 	}
 	mapHot := make(map[int]bool)
 	if themeType == 2 {
-		conditionHot := `ORDER BY fllow_num DESC `
+		conditionHot := `ORDER BY sum_num DESC `
 		listhot, err := models.GetDepartmentList(condition, conditionHot, user.UserId, 0, 3)
 		if err != nil {
 			br.Msg = "获取信息失败"