|
@@ -80,6 +80,17 @@ func (this *SummaryManage) PreserveAndPublish() {
|
|
articleId := req.ArticleId
|
|
articleId := req.ArticleId
|
|
articleTypeId := req.ArticleTypeId
|
|
articleTypeId := req.ArticleTypeId
|
|
|
|
|
|
|
|
+ detailIndustryNameList, err := cygx.GetIndustrialManagemenDetailByAaticleID(articleId)
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "分类失败"
|
|
|
|
+ br.ErrMsg = "获取报告原有分类失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ var industryId []string
|
|
|
|
+ for _, v := range detailIndustryNameList {
|
|
|
|
+ industryId = append(industryId, strconv.Itoa(v.IndustrialManagementId))
|
|
|
|
+ }
|
|
|
|
+
|
|
// 产业ID校验
|
|
// 产业ID校验
|
|
industryIds := make([]int, 0)
|
|
industryIds := make([]int, 0)
|
|
industrialManagementIdList := strings.Split(industrialManagementIds, ",")
|
|
industrialManagementIdList := strings.Split(industrialManagementIds, ",")
|
|
@@ -91,6 +102,7 @@ func (this *SummaryManage) PreserveAndPublish() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
industryIds = append(industryIds, i)
|
|
industryIds = append(industryIds, i)
|
|
|
|
+ industryId = append(industryId, v)
|
|
}
|
|
}
|
|
if industrialSubjectIds != "" {
|
|
if industrialSubjectIds != "" {
|
|
industrialSubjectIdList := strings.Split(industrialSubjectIds, ",")
|
|
industrialSubjectIdList := strings.Split(industrialSubjectIds, ",")
|
|
@@ -319,9 +331,10 @@ func (this *SummaryManage) PreserveAndPublish() {
|
|
go cygxService.UpdateIndustryLayoutTime(industryIds, false) // 查研观向7.4-更新产业布局时间
|
|
go cygxService.UpdateIndustryLayoutTime(industryIds, false) // 查研观向7.4-更新产业布局时间
|
|
go elastic.AddComprehensiveIndustrialSource("Yx", item.ArticleId) // 查研观向10.6 更新搜索引擎的产业资源包
|
|
go elastic.AddComprehensiveIndustrialSource("Yx", item.ArticleId) // 查研观向10.6 更新搜索引擎的产业资源包
|
|
}
|
|
}
|
|
- go elastic.AddComprehensiveArticle(item.ArticleId) // ES添加文章:报告、纪要
|
|
|
|
- go cygxService.UpdateArticleResourceData(item.ArticleId) //写入首页最新 cygx_resource_data 表
|
|
|
|
- go cygxService.MakeArticleMomentsImg(item.ArticleId) //生成文章分享到朋友圈的图片
|
|
|
|
|
|
+ go elastic.AddComprehensiveArticle(item.ArticleId) // ES添加文章:报告、纪要
|
|
|
|
+ go cygxService.UpdateArticleResourceData(item.ArticleId) //写入首页最新 cygx_resource_data 表
|
|
|
|
+ go cygxService.MakeArticleMomentsImg(item.ArticleId) //生成文章分享到朋友圈的图片
|
|
|
|
+ go cygxService.UpdateIndustrialsourceHzResourceDataById(industryId, "Yx") //修改相关产业关联的报告信息
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "操作成功"
|
|
br.Msg = "操作成功"
|
|
@@ -411,6 +424,18 @@ func (this *SummaryManage) PublishAndCancel() {
|
|
}
|
|
}
|
|
go elastic.AddComprehensiveArticle(articleId) // ES添加文章:报告、纪要
|
|
go elastic.AddComprehensiveArticle(articleId) // ES添加文章:报告、纪要
|
|
go cygxService.UpdateArticleResourceData(item.ArticleId) //写入首页最新 cygx_resource_data 表
|
|
go cygxService.UpdateArticleResourceData(item.ArticleId) //写入首页最新 cygx_resource_data 表
|
|
|
|
+
|
|
|
|
+ detailIndustryNameList, err := cygx.GetIndustrialManagemenDetailByAaticleID(articleId)
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "分类失败"
|
|
|
|
+ br.ErrMsg = "获取报告原有分类失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ var industryId []string
|
|
|
|
+ for _, v := range detailIndustryNameList {
|
|
|
|
+ industryId = append(industryId, strconv.Itoa(v.IndustrialManagementId))
|
|
|
|
+ }
|
|
|
|
+ go cygxService.UpdateIndustrialsourceHzResourceDataById(industryId, "Yx") //修改相关产业关联的报告信息
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "操作成功"
|
|
br.Msg = "操作成功"
|