|
@@ -86,7 +86,7 @@ func CygxResearchSummary(cont context.Context) (err error) {
|
|
|
|
|
|
//消费
|
|
|
{
|
|
|
- newCondition := condition + ` AND category_id_two IN(62,67,1008)`
|
|
|
+ newCondition := condition + ` AND category_id_two IN(67,1008)`
|
|
|
list, e := data_manage.GetReportArticleList(newCondition, pars)
|
|
|
if e != nil {
|
|
|
err = e
|
|
@@ -156,9 +156,14 @@ func CygxResearchSummary(cont context.Context) (err error) {
|
|
|
ChartPermissionId: CategoryChartPermissionIdMap[article.CategoryIdTwo],
|
|
|
CreateTime: time.Now(),
|
|
|
Body: head + company + annotation,
|
|
|
- ReportLink: "https://vmp.hzinsights.com/v2/articles/" + strconv.Itoa(article.ArticleId),
|
|
|
LinkArticleId: article.LinkArticleId,
|
|
|
}
|
|
|
+ if utils.RunMode == "release" {
|
|
|
+ logItem.ReportLink = "https://clpttest.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ } else {
|
|
|
+ logItem.ReportLink = "https://web.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ }
|
|
|
+
|
|
|
logItems = append(logItems, &logItem)
|
|
|
}
|
|
|
if len(logItems) > 0 {
|
|
@@ -264,9 +269,13 @@ func CygxResearchSummary(cont context.Context) (err error) {
|
|
|
ChartPermissionId: CategoryChartPermissionIdMap[article.CategoryIdTwo],
|
|
|
CreateTime: time.Now(),
|
|
|
Body: head + company + annotation,
|
|
|
- ReportLink: "https://vmp.hzinsights.com/v2/articles/" + strconv.Itoa(article.ArticleId),
|
|
|
LinkArticleId: article.LinkArticleId,
|
|
|
}
|
|
|
+ if utils.RunMode == "release" {
|
|
|
+ logItem.ReportLink = "https://clpttest.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ } else {
|
|
|
+ logItem.ReportLink = "https://web.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ }
|
|
|
logItems = append(logItems, &logItem)
|
|
|
}
|
|
|
if len(logItems) > 0 {
|
|
@@ -373,9 +382,13 @@ func CygxResearchSummary(cont context.Context) (err error) {
|
|
|
ChartPermissionId: CategoryChartPermissionIdMap[article.CategoryIdTwo],
|
|
|
CreateTime: time.Now(),
|
|
|
Body: head + company + annotation,
|
|
|
- ReportLink: "https://vmp.hzinsights.com/v2/articles/" + strconv.Itoa(article.ArticleId),
|
|
|
LinkArticleId: article.LinkArticleId,
|
|
|
}
|
|
|
+ if utils.RunMode == "release" {
|
|
|
+ logItem.ReportLink = "https://clpttest.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ } else {
|
|
|
+ logItem.ReportLink = "https://web.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ }
|
|
|
logItems = append(logItems, &logItem)
|
|
|
}
|
|
|
if len(logItems) > 0 {
|
|
@@ -620,7 +633,7 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
|
|
|
|
|
|
//消费
|
|
|
{
|
|
|
- newCondition := condition + ` AND category_id_two IN(32,58)`
|
|
|
+ newCondition := condition + ` AND category_id_two IN(32,58,62)`
|
|
|
list, e := data_manage.GetReportArticleList(newCondition, pars)
|
|
|
if e != nil {
|
|
|
err = e
|
|
@@ -690,9 +703,13 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
|
|
|
ChartPermissionId: CategoryChartPermissionIdMap[article.CategoryIdTwo],
|
|
|
CreateTime: time.Now(),
|
|
|
Body: head + company + annotation,
|
|
|
- ReportLink: "https://vmp.hzinsights.com/v2/articles/" + strconv.Itoa(article.ArticleId),
|
|
|
LinkArticleId: article.LinkArticleId,
|
|
|
}
|
|
|
+ if utils.RunMode == "release" {
|
|
|
+ logItem.ReportLink = "https://clpttest.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ } else {
|
|
|
+ logItem.ReportLink = "https://web.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ }
|
|
|
logItems = append(logItems, &logItem)
|
|
|
}
|
|
|
if len(logItems) > 0 {
|
|
@@ -799,9 +816,13 @@ func CygxLastWeekSummary(cont context.Context) (err error) {
|
|
|
ChartPermissionId: CategoryChartPermissionIdMap[article.CategoryIdTwo],
|
|
|
CreateTime: time.Now(),
|
|
|
Body: head + company + annotation,
|
|
|
- ReportLink: "https://vmp.hzinsights.com/v2/articles/" + strconv.Itoa(article.ArticleId),
|
|
|
LinkArticleId: article.LinkArticleId,
|
|
|
}
|
|
|
+ if utils.RunMode == "release" {
|
|
|
+ logItem.ReportLink = "https://clpttest.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ } else {
|
|
|
+ logItem.ReportLink = "https://web.hzinsights.com/material/info/" + strconv.Itoa(article.ArticleId)
|
|
|
+ }
|
|
|
logItems = append(logItems, &logItem)
|
|
|
}
|
|
|
if len(logItems) > 0 {
|