|
@@ -1408,6 +1408,12 @@ func (this *ReportController) ResearchDetail() {
|
|
|
br.ErrMsg = "获取子类信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ listArticleType, err := models.GetCygxArticleTypeList()
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.ErrMsg = "获取文章类型数据失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
for k, v := range listFirst {
|
|
|
listSecond, err := models.GetResearchSummarylogSonListSecond(articleId, v.Type)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
@@ -1422,13 +1428,19 @@ func (this *ReportController) ResearchDetail() {
|
|
|
br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if v2.ChartPermissionId == utils.YanxSummaryPermissionId {
|
|
|
- listSecond[k2].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
- listSecond[k2].PermissionName = "研选纪要"
|
|
|
- } else if v2.ChartPermissionId == utils.YanxViewpointPermissionId {
|
|
|
- listSecond[k2].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
- listSecond[k2].PermissionName = "研选观点"
|
|
|
+ for _, vType := range listArticleType {
|
|
|
+ if v2.ChartPermissionId == vType.YanxPermissionId {
|
|
|
+ listSecond[k2].IcoLink = vType.IcoLink
|
|
|
+ listSecond[k2].PermissionName = vType.ArticleTypeName
|
|
|
+ }
|
|
|
}
|
|
|
+ //if v2.ChartPermissionId == utils.YanxSummaryPermissionId {
|
|
|
+ // listSecond[k2].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
+ // listSecond[k2].PermissionName = "买方研选纪要"
|
|
|
+ //} else if v2.ChartPermissionId == utils.YanxViewpointPermissionId {
|
|
|
+ // listSecond[k2].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
+ // listSecond[k2].PermissionName = "买方研选观点"
|
|
|
+ //}
|
|
|
if len(listThird) > 0 {
|
|
|
for k3, v3 := range listThird {
|
|
|
if v3.VideoUrl != "" {
|
|
@@ -1461,7 +1473,7 @@ func (this *ReportController) ResearchDetail() {
|
|
|
listFirst[k].ListName = "事件点评"
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202110/20211020/2a5cXafO3Iws4QcFp1bd5WPdYikV.png"
|
|
|
} else if v.Type == "YANX" {
|
|
|
- listFirst[k].ListName = "研选"
|
|
|
+ listFirst[k].ListName = "买方研选"
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
}
|
|
|
}
|
|
@@ -1583,7 +1595,7 @@ func (this *ReportController) MinutesDetailV4() {
|
|
|
listFirst[k].ListName = "上市公司调研纪要篇"
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211101/ujHXB48I8ay9T0XoPRI7lorz7OkL.png"
|
|
|
} else if v.Type == "YANX" {
|
|
|
- listFirst[k].ListName = "研选纪要"
|
|
|
+ listFirst[k].ListName = "买方研选纪要"
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
}
|
|
|
}
|