Commit 155bed23 authored by 李科's avatar 李科

fix: 预警工单是否处置判断

parent 34f672ee
...@@ -75,6 +75,7 @@ func (a *AlertListSvc) GetDataById(req request.DetailAlertList) (resp response.A ...@@ -75,6 +75,7 @@ func (a *AlertListSvc) GetDataById(req request.DetailAlertList) (resp response.A
DisposalTime: now, DisposalTime: now,
}, },
}, },
IsDisposed: 2,
CloseRemark: "", CloseRemark: "",
CloseUser: "", CloseUser: "",
DeferPush: 0, DeferPush: 0,
...@@ -165,6 +166,7 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL ...@@ -165,6 +166,7 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL
DisposalTime: now, DisposalTime: now,
}, },
}, },
IsDisposed: 2,
CloseRemark: "", CloseRemark: "",
CloseUser: "", CloseUser: "",
DeferPush: 0, DeferPush: 0,
...@@ -235,14 +237,23 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL ...@@ -235,14 +237,23 @@ func (a *AlertListSvc) List(req request.ListAlertList) (resp response.AlertListL
PushCount: 1, PushCount: 1,
LastPushTime: now, LastPushTime: now,
Status: 3, Status: 3,
CloseRemark: "关闭备注", DisposedList: []entity.DisposedList{
CloseUser: "xiaowang", {
CloseTime: now, IsDisposed: 1,
DeferPush: 1, DisposalContent: "已做处置",
CreatedBy: "admin", DisposalUser: "xiaowang",
CreatedAt: now, DisposalTime: now,
UpdatedBy: "admin", },
UpdatedAt: now, },
IsDisposed: 1,
CloseRemark: "关闭备注",
CloseUser: "xiaowang",
CloseTime: now,
DeferPush: 1,
CreatedBy: "admin",
CreatedAt: now,
UpdatedBy: "admin",
UpdatedAt: now,
}, },
AlertCondition: entity.AlertCondition{ AlertCondition: entity.AlertCondition{
ThresholdsMax: 80, ThresholdsMax: 80,
......
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