Browse Source

Merge branch 'cygx4.2_web' of http://8.136.199.33:3000/cxzhang/hongze_clpt into debug

xingzai 2 years ago
parent
commit
6dbba3bd8f
2 changed files with 6 additions and 4 deletions
  1. 1 0
      controllers/report_selection.go
  2. 5 4
      models/report_selection.go

+ 1 - 0
controllers/report_selection.go

@@ -115,6 +115,7 @@ func (this *ReportSelectionController) Detail() {
 		if existMap[v.ChartPermissionId] == 0 {
 			//item.PermissionName = v.PermissionName + "领域深度报告和调研"
 			item.PermissionName = v.PermissionName
+			item.ChartPermissionId = v.ChartPermissionId
 			item.IcoLink = v.IcoLink
 			listSonLog, err := models.GetReportSelectionlogSonListAll(articleId, v.ChartPermissionId)
 			if err != nil && err.Error() != utils.ErrNoRow() {

+ 5 - 4
models/report_selection.go

@@ -52,10 +52,11 @@ type ReportSelectionLetailResp struct {
 }
 
 type ReportSelectionChartPermission struct {
-	PermissionName   string `description:"权限名称"`
-	IcoLink          string `orm:"column(image_url)"description:"图标链接"`
-	List             []*CygxReportSelectionLogDetail
-	BodyChartSummary string `description:"行业核心逻辑汇总"`
+	PermissionName    string `description:"权限名称"`
+	ChartPermissionId int    `description:"权限名称"`
+	IcoLink           string `orm:"column(image_url)"description:"图标链接"`
+	List              []*CygxReportSelectionLogDetail
+	BodyChartSummary  string `description:"行业核心逻辑汇总"`
 }
 
 type ReportSelectionChartLogPermission struct {