Browse Source

fix: 研报分类列表

hsun 1 year ago
parent
commit
35750b33c0
1 changed files with 5 additions and 6 deletions
  1. 5 6
      services/report/classify.go

+ 5 - 6
services/report/classify.go

@@ -336,9 +336,9 @@ func GetClassifyFirstList(user user.UserInfo) (resp response.ClassifyFirstList,
 		temp.ClassifyNameFirst = item.ClassifyName
 		temp.IconImgUrl = classifyIconMap[item.ClassifyName]
 		temp.Sort = classifySortMap[item.ClassifyName]
-		if temp.Sort == 0 {
-			continue
-		}
+		//if temp.Sort == 0 {
+		//	continue
+		//}
 		// ShowType展示类型:1-列表 2-专栏 3-品种; RedirectType跳转类型:1-专栏列表 2-报告列表 3-专栏详情 4-品种类型列表
 		temp.RedirectType = 2
 		if item.ShowType == 2 {
@@ -405,16 +405,15 @@ func GetClassifyFirstList(user user.UserInfo) (resp response.ClassifyFirstList,
 	//}
 	for _, item := range list {
 		//无权限用户关闭品种类别入口
-		if item.RedirectType == 4 && !productAuthOk{
+		if item.RedirectType == 4 && !productAuthOk {
 			continue
 		}
 
 		//只有宏观经济权限的用户关闭品种类别入口
-		if len(validPermissionIdList) == 1 && validPermissionIdList[0] == 1 && item.RedirectType == 4{
+		if len(validPermissionIdList) == 1 && validPermissionIdList[0] == 1 && item.RedirectType == 4 {
 			continue
 		}
 
-
 		resp = append(resp, item)
 	}