|
@@ -424,6 +424,18 @@ func (this *SummaryManage) PublishAndCancel() {
|
|
|
}
|
|
|
go elastic.AddComprehensiveArticle(articleId) // ES添加文章:报告、纪要
|
|
|
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.Success = true
|
|
|
br.Msg = "操作成功"
|