|
@@ -2,7 +2,6 @@ package controllers
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
- "fmt"
|
|
|
"hongze/hongze_cygx/models"
|
|
|
"hongze/hongze_cygx/services"
|
|
|
"hongze/hongze_cygx/utils"
|
|
@@ -73,7 +72,6 @@ func (this *ReportSelectionController) Detail() {
|
|
|
if detail.VisibleRange == 1 || user.CompanyId == utils.HZ_COMPANY_ID {
|
|
|
resp.IsShow = true
|
|
|
}
|
|
|
- fmt.Println(resp.IsShow)
|
|
|
resp.HasPermission = hasPermission
|
|
|
if hasPermission != 1 || !resp.IsShow {
|
|
|
br.Ret = 200
|
|
@@ -86,6 +84,7 @@ func (this *ReportSelectionController) Detail() {
|
|
|
articleIdLink, _ := services.GetReportLinkToArticleid(detail.ReportLink)
|
|
|
detail.CeLueArticleId = articleIdLink
|
|
|
}
|
|
|
+ articleStockMap, _ := services.GetArticleStockMap()
|
|
|
detail.PublishDate = utils.StrTimeToTime(detail.PublishDate).Format("2006-01-02")
|
|
|
existMap := make(map[int]int)
|
|
|
var items []*models.ReportSelectionChartPermission
|
|
@@ -130,6 +129,7 @@ func (this *ReportSelectionController) Detail() {
|
|
|
br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ listSonLog[k2].OverviewArticleId = articleStockMap[v2.SubjectName]
|
|
|
listSonLog[k2].List = listIndustrial
|
|
|
if v2.Label != "" {
|
|
|
v2.CompanyLabel = strings.Split(v2.Label, "{|}")
|