camera-common/models/Record.go
@@ -5,6 +5,7 @@ "fmt" "math" "sort" "strconv" "strings" "time" @@ -28,7 +29,7 @@ // 统计查询 type StaticRecord struct { Id int64 `json:"id"` Id string `json:"id"` TaskId []int64 `json:"task_id"` RuleId []int64 `json:"rule_id"` EventLevelId []int64 `json:"event_level_id"` @@ -226,7 +227,7 @@ case "id": IdColumn := field.(*entity.ColumnInt64).Data() if len(IdColumn) > 0 { record.Id = IdColumn[i] record.Id = strconv.FormatInt(IdColumn[i], 10) } case "task_id": TaskIdColumn := field.(*entity.ColumnInt64Array).Data()