|
@@ -1314,7 +1314,7 @@ func (this *ReportController) ResearchDetail() {
|
|
|
br.ErrMsg = "报告不存在,Err:" + err.Error() + "articleId:" + strconv.Itoa(articleId)
|
|
|
return
|
|
|
}
|
|
|
- detail.PublishDate = utils.StrTimeToTime(detail.PublishDate).Format("2006-01-02")
|
|
|
+ detail.PublishDate = utils.StrTimeToTime(detail.PublishDate).Format(utils.FormatDate)
|
|
|
detail.VideoPlaySeconds = utils.Mp3Time(detail.VideoPlaySeconds)
|
|
|
listFirst, err := models.GetResearchSummarylogListFirst(articleId)
|
|
|
if err != nil {
|
|
@@ -1336,8 +1336,14 @@ 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 = "研选观点"
|
|
|
+ }
|
|
|
if len(listThird) > 0 {
|
|
|
- listSecond[k2].List = listThird
|
|
|
for k3, v3 := range listThird {
|
|
|
if v3.VideoUrl != "" {
|
|
|
listThird[k3].IsHaveVideo = true
|
|
@@ -1346,6 +1352,7 @@ func (this *ReportController) ResearchDetail() {
|
|
|
listThird[k3].ReportLink = ""
|
|
|
}
|
|
|
}
|
|
|
+ listSecond[k2].List = listThird
|
|
|
}
|
|
|
}
|
|
|
if len(listSecond) > 0 {
|
|
@@ -1364,11 +1371,13 @@ func (this *ReportController) ResearchDetail() {
|
|
|
} else if v.Type == "SSGS" {
|
|
|
listFirst[k].ListName = "上市公司调研纪要篇"
|
|
|
listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211101/ujHXB48I8ay9T0XoPRI7lorz7OkL.png"
|
|
|
- } else {
|
|
|
+ } else if v.Type == "SJDP" {
|
|
|
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].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
historyRecord.UserId = uid
|
|
@@ -1433,29 +1442,54 @@ func (this *ReportController) MinutesDetail() {
|
|
|
br.ErrMsg = "报告不存在,Err:" + err.Error() + "articleId:" + strconv.Itoa(articleId)
|
|
|
return
|
|
|
}
|
|
|
- detail.PublishDate = utils.StrTimeToTime(detail.PublishDate).Format("2006-01-02")
|
|
|
+ detail.PublishDate = utils.StrTimeToTime(detail.PublishDate).Format(utils.FormatDate)
|
|
|
detail.VideoPlaySeconds = utils.Mp3Time(detail.VideoPlaySeconds)
|
|
|
- listLog, err := models.GetMinutesSummarylogListAll(articleId)
|
|
|
+ listFirst, err := models.GetMinutesSummarylogListAll(articleId)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "获取子类信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- for k, v := range listLog {
|
|
|
- listSonLog, err := models.GetMinutesSummarylogSonListAll(articleId, v.ChartPermissionId)
|
|
|
+ for k, v := range listFirst {
|
|
|
+ listSecond, err := models.GetMinutesSummarylogSonListSecond(articleId, v.Type)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "获取信息失败"
|
|
|
br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if len(listSonLog) > 0 {
|
|
|
- listLog[k].List = listSonLog
|
|
|
- for k2, v2 := range listSonLog {
|
|
|
- if v2.ReportLink == "0" {
|
|
|
- listSonLog[k2].ReportLink = ""
|
|
|
+ for k2, v2 := range listSecond {
|
|
|
+ listThird, err := models.GetMinutesSummarylogListThird(articleId, v2.ChartPermissionId, v.Type)
|
|
|
+ if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if len(listThird) > 0 {
|
|
|
+ for k3, v3 := range listThird {
|
|
|
+ if v3.VideoUrl != "" {
|
|
|
+ listThird[k3].IsHaveVideo = true
|
|
|
+ }
|
|
|
+ if v3.ReportLink == "0" {
|
|
|
+ listThird[k3].ReportLink = ""
|
|
|
+ }
|
|
|
}
|
|
|
+ listSecond[k2].List = listThird
|
|
|
}
|
|
|
}
|
|
|
+ if len(listSecond) > 0 {
|
|
|
+ listFirst[k].List = listSecond
|
|
|
+ }
|
|
|
+ //`description:"类型'SDBG深度报告片篇,’CYDYJY:产业调研纪要’,’SJDP事件点评,’BZCHJH:本周晨会精华’"`
|
|
|
+ if v.Type == "CYDYJY" {
|
|
|
+ listFirst[k].ListName = "产业调研纪要"
|
|
|
+ listFirst[k].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202110/20211020/UPAdozy96z9ypzY04vi0Y3Ogqzji.png"
|
|
|
+ } else if v.Type == "SSGS" {
|
|
|
+ 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].IcoLink = "https://hongze.oss-cn-shanghai.aliyuncs.com/static/images/202111/20211104/QbTGTNhD9MxYp24cJ7V5WpCN0oNl.png"
|
|
|
+ }
|
|
|
}
|
|
|
historyRecord := new(models.CygxReportHistoryRecord)
|
|
|
historyRecord.UserId = uid
|
|
@@ -1467,7 +1501,7 @@ func (this *ReportController) MinutesDetail() {
|
|
|
historyRecord.CompanyName = user.CompanyName
|
|
|
historyRecord.ReportType = "szjyhz"
|
|
|
go models.AddCygxReportHistoryRecord(historyRecord)
|
|
|
- resp.List = listLog
|
|
|
+ resp.List = listFirst
|
|
|
resp.Detail = detail
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|