xyxie 1 week ago
parent
commit
264ecef9c1
2 changed files with 1 additions and 7 deletions
  1. 0 6
      models/tables/rddp/chart_permission/query.go
  2. 1 1
      services/company/permission.go

+ 0 - 6
models/tables/rddp/chart_permission/query.go

@@ -62,12 +62,6 @@ func GetFiccFirstListExceptTacticByProductId() (list []*ChartPermission, err err
 	return
 }
 
-// GetFiccFirstListExceptTacticAndFixedByProductId 获取ficc 除了市场策略和固定收益的所有父级
-func GetFiccFirstListExceptTacticAndFixedByProductId() (list []*ChartPermission, err error) {
-	err = global.MYSQL["rddp"].Where(" enabled = 1 AND permission_type = 0 AND product_id = 1 and classify_name != '市场策略' and classify_name != '固定收益' AND parent_id = 0").Order("sort asc").Find(&list).Error
-	return
-}
-
 // GetChartPermissionsByProductId 获取权限列表
 func GetChartPermissionsByProductId() (list []*ChartPermission, err error) {
 	err = global.MYSQL["rddp"].Where(" enabled = 1 AND product_id = 1").Order("parent_id ASC, sort ASC, created_time ASC").Find(&list).Error

+ 1 - 1
services/company/permission.go

@@ -971,7 +971,7 @@ func GetBindFiccPermissions(user user.UserInfo) (ret response.BindPermissionFicc
 	permissionFirstMap := make(map[int]*response.BindPermissionFiccItem)
 
 	//查询首页展示的图标
-	permissionFirstList, err := chart_permission2.GetFiccFirstListExceptTacticAndFixedByProductId()
+	permissionFirstList, err := chart_permission2.GetFiccFirstListExceptTacticByProductId()
 	if err != nil {
 		return
 	}