Commit 05c26cf3 authored by 李科's avatar 李科

fix: 预警分类传参

parent 4cbae66d
...@@ -84,7 +84,7 @@ func (m *MetricConfigSvc) List(req request.ListMetricConfig) (resp response.Unit ...@@ -84,7 +84,7 @@ func (m *MetricConfigSvc) List(req request.ListMetricConfig) (resp response.Unit
session.Where("class_id = ?", req.ClassId) session.Where("class_id = ?", req.ClassId)
} }
if req.MetricName != "" { if req.MetricName != "" {
session.Where("class_name LIKE ?", "%"+req.MetricName+"%") session.Where("metric_name LIKE ?", "%"+req.MetricName+"%")
} }
if req.IsEnabled != 0 { if req.IsEnabled != 0 {
session.Where("is_enabled = ?", req.IsEnabled) session.Where("is_enabled = ?", req.IsEnabled)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment