|
@@ -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 = "获取信息失败"
|