Sfoglia il codice sorgente

fix_买方研选显示处理

xingzai 2 anni fa
parent
commit
f5d5cd17d1
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      controllers/chart_permission.go

+ 2 - 2
controllers/chart_permission.go

@@ -123,7 +123,7 @@ func (this *ChartPermissionAuthController) ReportDetail() {
 		}
 	}
 	if userType == 1 {
-		condition += ` AND permission_name  != '研选'`
+		condition += ` AND permission_name  != '买方研选'`
 	}
 	list, err := models.GetChartPermissionReportAll(condition)
 	if err != nil {
@@ -140,7 +140,7 @@ func (this *ChartPermissionAuthController) ReportDetail() {
 		} else {
 			resp.List = append(resp.List, v)
 		}
-		if services.GetShowSustainable() && v.PermissionName == "研选" {
+		if services.GetShowSustainable() && v.PermissionName == utils.CHART_PERMISSION_NAME_MF_YANXUAN {
 			resp.List[k].IsShowSustainable = true
 		}
 	}