ソースを参照

fix:预警等级管理过滤

zqbao 4 ヶ月 前
コミット
650001c1a7
1 ファイル変更2 行追加6 行削除
  1. 2 6
      services/edb_monitor/edb_monitor.go

+ 2 - 6
services/edb_monitor/edb_monitor.go

@@ -45,13 +45,9 @@ func GetMonitorList(classifyId, level, state, userId string, pageSize, currentIn
 			classifyIdList = append(classifyIdList, cv)
 		}
 	}
-	var levelList []int
+	var levelList []string
 	if level != "" {
-		tmp := strings.Split(level, ",")
-		for _, v := range tmp {
-			lv, _ := strconv.Atoi(v)
-			levelList = append(levelList, lv)
-		}
+		levelList = strings.Split(level, ",")
 	}
 	var stateList []int
 	if state != "" {