|
@@ -89,7 +89,7 @@ func (this *ReportController) Detail() {
|
|
|
report.Content = report.ContentSub
|
|
|
}
|
|
|
}
|
|
|
- if productId==1 {
|
|
|
+ if productId == 1 {
|
|
|
reportType := "rddp"
|
|
|
reportPermissionList, err := models.GetReportVarietyListByUserIdExt(user.UserId, reportType)
|
|
|
if err != nil {
|
|
@@ -138,6 +138,12 @@ func (this *ReportController) Detail() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if report.ClassifyNameFirst == "权益研报" {
|
|
|
+ report.TitleType = "权益"
|
|
|
+ } else {
|
|
|
+ report.TitleType = "FICC"
|
|
|
+ }
|
|
|
+
|
|
|
resp := new(models.ReportDetailResp)
|
|
|
resp.Status = status
|
|
|
resp.Msg = msg
|
|
@@ -153,7 +159,13 @@ func (this *ReportController) Detail() {
|
|
|
go utils.SendEmail(utils.APPNAME+"失败提醒", "新增报告阅读记录失败:Err:"+err.Error(), utils.EmailSendToUsers)
|
|
|
}
|
|
|
}
|
|
|
- recommendList, err := models.GetRecommendList(reportId)
|
|
|
+ reportType := 0
|
|
|
+ if report.ClassifyNameFirst == "权益研报" {
|
|
|
+ reportType = 1
|
|
|
+ } else {
|
|
|
+ reportType = 2
|
|
|
+ }
|
|
|
+ recommendList, err := models.GetRecommendList(reportId, reportType)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取报告详情失败"
|
|
|
br.ErrMsg = "获取报告推荐列表信息失败,Err:" + err.Error()
|
|
@@ -173,6 +185,11 @@ func (this *ReportController) Detail() {
|
|
|
if count > 0 {
|
|
|
recommendList[i].HasPermission = 1
|
|
|
}
|
|
|
+ if item.ClassifyNameFirst == "权益研报" {
|
|
|
+ recommendList[i].TitleType = "权益"
|
|
|
+ } else {
|
|
|
+ recommendList[i].TitleType = "FICC"
|
|
|
+ }
|
|
|
}
|
|
|
resp.RecommendList = recommendList
|
|
|
br.Ret = 200
|
|
@@ -247,6 +264,12 @@ func (this *ReportController) ListReport() {
|
|
|
if count > 0 {
|
|
|
list[i].HasPermission = 1
|
|
|
}
|
|
|
+
|
|
|
+ if item.ClassifyNameFirst == "权益研报" {
|
|
|
+ list[i].TitleType = "权益"
|
|
|
+ } else {
|
|
|
+ list[i].TitleType = "FICC"
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
page := models.GetPaging(currentIndex, pageSize, total)
|