|
@@ -234,8 +234,14 @@ func (this *ReportController) IndustryList() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 获取近一个月产业报告阅读次数最多的产业
|
|
// 获取近一个月产业报告阅读次数最多的产业
|
|
|
|
+ var topCond string
|
|
|
|
+ var topPars []interface{}
|
|
topReadIndustryId := 0
|
|
topReadIndustryId := 0
|
|
- topReadIndustry, e := models.GetTopOneMonthArtReadNumIndustry()
|
|
|
|
|
|
+ if ChartPermissionId > 0 {
|
|
|
|
+ topCond += ` AND chart_permission_id = ?`
|
|
|
|
+ topPars = append(topPars, ChartPermissionId)
|
|
|
|
+ }
|
|
|
|
+ topReadIndustry, e := models.GetTopOneMonthArtReadNumIndustry(topCond, topPars)
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|
|
br.Msg = "获取信息失败"
|
|
br.Msg = "获取信息失败"
|
|
br.ErrMsg = "获取近一个月报告阅读次数最多的产业失败, Err: " + e.Error()
|
|
br.ErrMsg = "获取近一个月报告阅读次数最多的产业失败, Err: " + e.Error()
|