xingzai hace 1 año
padre
commit
63c445a691
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11 0
      controllers/cygx/report_selection.go

+ 11 - 0
controllers/cygx/report_selection.go

@@ -985,12 +985,23 @@ func (this *ReportSelectionController) History() {
 	articleId = detail.ArticleId
 	resp := new(cygx.HistoryReportSelectionRep)
 
+	permissionNameMap, err := services.GetPermissionNameMap()
+	if err != nil {
+		br.Msg = "获取失败"
+		br.ErrMsg = "获取失败 GetPermissionNameMap,Err:" + err.Error()
+		return
+	}
+
 	listSelectionLog, err := cygx.GetReportSelectionlogListAll(articleId)
 	if err != nil {
 		br.Msg = "获取失败"
 		br.ErrMsg = "GetReportSelectionlogListAll,Err:" + err.Error()
 		return
 	}
+
+	for k, v := range listSelectionLog {
+		listSelectionLog[k].PermissionName = permissionNameMap[v.ChartPermissionId]
+	}
 	//获取标的的点击次数
 	listSelectionSubjectHistory, err := cygx.GetCygxReportSelectionSubjectHistoryList(articleId)
 	if err != nil && err.Error() != utils.ErrNoRow() {