feat: 告警日志查询补充告警状态字段
This commit is contained in:
@@ -24,6 +24,9 @@ func (r AlarmLog) SelectByPage(query model.AlarmLogQuery) ([]model.AlarmLog, int
|
||||
if query.NeID != "" {
|
||||
tx = tx.Where("ne_id = ?", query.NeID)
|
||||
}
|
||||
if query.AlarmStatus != "" {
|
||||
tx = tx.Where("alarm_status = ?", query.AlarmStatus)
|
||||
}
|
||||
if query.BeginTime != 0 {
|
||||
tx = tx.Where("created_at >= ?", query.BeginTime)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user