Explorar o código

fix_买方研选显示处理

xingzai %!s(int64=2) %!d(string=hai) anos
pai
achega
f5d5cd17d1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
 		}
 	}