|
@@ -343,8 +343,9 @@ func (this *ReportController) PdfDetail() {
|
|
|
br.ErrMsg = "研报不存在或已删除,系统异常,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ reportClassifyId := services.GetReportPdfClassify(reportPdf)
|
|
|
|
|
|
- permissionResp, err := services.GetChartPermissionListByClassifyId(reportPdf.ClassifyIdSecond, 0)
|
|
|
+ permissionResp, err := services.GetChartPermissionListByClassifyId(reportClassifyId, 0)
|
|
|
if err != nil {
|
|
|
br.Msg = "研报不存在或已删除"
|
|
|
br.ErrMsg = "获取权限失败,系统异常,Err:" + err.Error()
|
|
@@ -482,7 +483,17 @@ func (this *ReportController) DailyList() {
|
|
|
}
|
|
|
var classifyIds []int
|
|
|
for _, v := range reportPdfList {
|
|
|
- classifyIds = append(classifyIds, v.ClassifyIdSecond)
|
|
|
+ var reportClassifyId int
|
|
|
+ if v.ClassifyIdFirst != 0 {
|
|
|
+ reportClassifyId = v.ClassifyIdFirst
|
|
|
+ }
|
|
|
+ if v.ClassifyIdSecond != 0 {
|
|
|
+ reportClassifyId = v.ClassifyIdSecond
|
|
|
+ }
|
|
|
+ if v.ClassifyIdThird != 0 {
|
|
|
+ reportClassifyId = v.ClassifyIdThird
|
|
|
+ }
|
|
|
+ classifyIds = append(classifyIds, reportClassifyId)
|
|
|
}
|
|
|
|
|
|
if len(classifyIds) > 0 {
|
|
@@ -508,6 +519,8 @@ func (this *ReportController) DailyList() {
|
|
|
ClassifyNameFirst: v.ClassifyNameFirst,
|
|
|
ClassifyIdSecond: v.ClassifyIdSecond,
|
|
|
ClassifyNameSecond: v.ClassifyNameSecond,
|
|
|
+ ClassifyIdThird: v.ClassifyIdThird,
|
|
|
+ ClassifyNameThird: v.ClassifyNameThird,
|
|
|
PermissionNames: classifyPermissionMap[v.ClassifyIdSecond],
|
|
|
PdfUrl: v.PdfUrl,
|
|
|
Title: v.Title,
|
|
@@ -569,7 +582,17 @@ func (this *ReportController) RecentList() {
|
|
|
}
|
|
|
var classifyIds []int
|
|
|
for _, v := range reportPdfList {
|
|
|
- classifyIds = append(classifyIds, v.ClassifyIdSecond)
|
|
|
+ var reportClassifyId int
|
|
|
+ if v.ClassifyIdFirst != 0 {
|
|
|
+ reportClassifyId = v.ClassifyIdFirst
|
|
|
+ }
|
|
|
+ if v.ClassifyIdSecond != 0 {
|
|
|
+ reportClassifyId = v.ClassifyIdSecond
|
|
|
+ }
|
|
|
+ if v.ClassifyIdThird != 0 {
|
|
|
+ reportClassifyId = v.ClassifyIdThird
|
|
|
+ }
|
|
|
+ classifyIds = append(classifyIds, reportClassifyId)
|
|
|
}
|
|
|
classifyResp, err := services.GetFirstChartPermission(classifyIds)
|
|
|
if err != nil {
|
|
@@ -593,6 +616,8 @@ func (this *ReportController) RecentList() {
|
|
|
ClassifyNameFirst: v.ClassifyNameFirst,
|
|
|
ClassifyIdSecond: v.ClassifyIdSecond,
|
|
|
ClassifyNameSecond: v.ClassifyNameSecond,
|
|
|
+ ClassifyIdThird: v.ClassifyIdThird,
|
|
|
+ ClassifyNameThird: v.ClassifyNameThird,
|
|
|
PermissionNames: classifyPermissionMap[v.ClassifyIdSecond],
|
|
|
PdfUrl: v.PdfUrl,
|
|
|
Title: v.Title,
|
|
@@ -665,6 +690,8 @@ func (this *ReportController) Search() {
|
|
|
ClassifyNameFirst: v.ClassifyNameFirst,
|
|
|
ClassifyIdSecond: v.ClassifyIdSecond,
|
|
|
ClassifyNameSecond: v.ClassifyNameSecond,
|
|
|
+ ClassifyIdThird: v.ClassifyIdThird,
|
|
|
+ ClassifyNameThird: v.ClassifyNameThird,
|
|
|
ReportChapterTypeId: v.ReportChapterTypeId,
|
|
|
PublishTime: v.PublishTime.Format(utils.FormatDate),
|
|
|
Title: v.Title,
|