|
@@ -43,7 +43,7 @@ func GetClassifyFirstList(user user.UserInfo) (resp pc.ClassifyFirstList, err er
|
|
|
names = append(names, v.ClassifyName)
|
|
|
}
|
|
|
|
|
|
- reportList,err := pc.GetLatestStage(names)
|
|
|
+ reportList, err := pc.GetLatestStage(names)
|
|
|
if err != nil {
|
|
|
errMsg = err.Error()
|
|
|
err = errors.New("报告查询出错")
|
|
@@ -56,9 +56,9 @@ func GetClassifyFirstList(user user.UserInfo) (resp pc.ClassifyFirstList, err er
|
|
|
temp.ClassifyNameFirst = item.ClassifyName
|
|
|
temp.BackImgUrl = 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 {
|
|
@@ -127,12 +127,12 @@ func GetClassifyFirstList(user user.UserInfo) (resp pc.ClassifyFirstList, err er
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
@@ -148,6 +148,5 @@ func GetClassifyFirstList(user user.UserInfo) (resp pc.ClassifyFirstList, err er
|
|
|
sort.Sort(resp)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return
|
|
|
-}
|
|
|
+}
|