Merge pull request #9694 from zhaoxiangchun/feature/zxc-alerthistory-master

fix(monitor): add resType   filter
This commit is contained in:
Zexi Li
2020-12-28 21:22:21 +08:00
committed by GitHub
+3
View File
@@ -104,6 +104,9 @@ func (manager *SAlertRecordManager) ListItemFilter(
} else {
q = q.IsNotEmpty("res_type").IsNotNull("res_type")
}
if len(query.ResType) != 0 {
q = q.Equals("res_type", query.ResType)
}
return q, nil
}