|
@@ -493,6 +493,17 @@ func (this *IndustrialSubjectController) ReportArticleClassification() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ detailIndustryNameList, err := cygx.GetIndustrialManagemenDetailByAaticleID(reportInfo.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))
|
|
|
+ }
|
|
|
+
|
|
|
industrialStrList := strings.Split(industrialManagementIdStr, ",")
|
|
|
for _, v := range industrialStrList {
|
|
|
condition = `AND industrial_management_id = ` + v
|
|
@@ -502,6 +513,7 @@ func (this *IndustrialSubjectController) ReportArticleClassification() {
|
|
|
br.ErrMsg = "操作失败,产业不存在IndustrialManagementId:" + v
|
|
|
return
|
|
|
}
|
|
|
+ industryId = append(industryId, v)
|
|
|
}
|
|
|
if req.IndustrialSubjectIdStr != "0" && req.IndustrialSubjectIdStr != "" {
|
|
|
strList := strings.Split(req.IndustrialSubjectIdStr, ",")
|
|
@@ -524,6 +536,7 @@ func (this *IndustrialSubjectController) ReportArticleClassification() {
|
|
|
}
|
|
|
|
|
|
go cygxService.DoArticleOnenIdWxTemplateMsg(reportInfo.ArticleId, 2)
|
|
|
+ go cygxService.UpdateIndustrialsourceHzResourceDataById(industryId, "HZ")
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "分类成功"
|