|
@@ -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() {
|