|
@@ -750,6 +750,7 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
articleResult := articleResultDate.Data
|
|
|
|
|
|
exitMap := make(map[int]int)
|
|
|
+ categoryIdMap := make(map[int]int)
|
|
|
classMap := make(map[int]int)
|
|
|
reportMap := make(map[int]int)
|
|
|
summaryMap := make(map[int]int)
|
|
@@ -766,7 +767,8 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
fmt.Println(openIdList)
|
|
|
//新旧分类 反向隐射,是否归类,是否是报告,是否是纪要库
|
|
|
for _, v := range listMap {
|
|
|
- exitMap[v.Id] = v.OldId
|
|
|
+ exitMap[v.SeriesId] = v.OldId
|
|
|
+ categoryIdMap[v.SeriesId] = v.OldIdMap
|
|
|
if v.IsClass == 1 {
|
|
|
classMap[v.OldId] = 1
|
|
|
}
|
|
@@ -827,7 +829,7 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
item.Abstract = articleResult.Content.Abstract
|
|
|
item.Annotation = articleResult.Content.Annotation
|
|
|
item.CategoryName = articleResult.Industry.Name
|
|
|
- item.CategoryId = exitMap[articleResult.SeriesId]
|
|
|
+ item.CategoryId = categoryIdMap[articleResult.SeriesId]
|
|
|
item.CategoryIdTwo = exitMap[articleResult.SeriesId]
|
|
|
item.SubCategoryName = articleResult.Series.Name
|
|
|
item.Cover = cover
|
|
@@ -917,9 +919,9 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
v.IsSummary = 0
|
|
|
}
|
|
|
}
|
|
|
- if _, has := reportMap[v.CategoryId]; has {
|
|
|
+ if _, has := reportMap[v.CategoryIdTwo]; has {
|
|
|
v.IsReport = 1
|
|
|
- if _, ok := classMap[v.CategoryId]; ok {
|
|
|
+ if _, ok := classMap[v.CategoryIdTwo]; ok {
|
|
|
v.IsClass = 1
|
|
|
v.ReportType = 1 //是否属于行业报告
|
|
|
} else {
|