瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
4ff61d9d4c
共有 3 個文件被更改,包括 5 次插入1 次删除
  1. 3 0
      controllers/user.go
  2. 1 1
      models/report_mapping.go
  3. 1 0
      utils/constants.go

+ 3 - 0
controllers/user.go

@@ -90,6 +90,9 @@ func (this *UserController) ChooseDetail() {
 	}
 
 	for k, v := range celueList {
+		if v.ChartPermissionId == utils.GU_SHOU_ID {
+			v.ChartPermissionId = utils.CE_LUE_ID
+		}
 		if mapCategory[v.IndustrialManagementId] > 0 {
 			celueList[k].IsFllow = true
 			//添加所关注的行业赛道

+ 1 - 1
models/report_mapping.go

@@ -12,7 +12,7 @@ type ReportMappingResp struct {
 	IsRed           bool   `description:"是否标红"`
 }
 
-//获取策略下面的所有分类
+// 获取策略下面的所有分类
 func GetReportMappingStrategyAll() (items []*IndustrialManagementRep, err error) {
 	o := orm.NewOrm()
 	sql := `SELECT

+ 1 - 0
utils/constants.go

@@ -69,6 +69,7 @@ const (
 	KE_JI_ID                         int    = 20
 	ZHI_ZAO_NAME                     string = "智造"
 	ZHI_ZAO_ID                       int    = 19
+	GU_SHOU_ID                       int    = 100000 //固收
 )
 
 const (