diff --git a/src/modules/network_data/repository/cdr_event.go b/src/modules/network_data/repository/cdr_event.go index 4ce8532e..0123ea0b 100644 --- a/src/modules/network_data/repository/cdr_event.go +++ b/src/modules/network_data/repository/cdr_event.go @@ -29,13 +29,13 @@ func (r CDREvent) SelectByPage(neType string, query map[string]string) ([]model. if len(v) == 10 { v = v + "000" } - tx = tx.Where("timestamp >= ?", v) + tx = tx.Where("created_at >= ?", v) } if v, ok := query["endTime"]; ok && v != "" { if len(v) == 10 { v = v + "000" } - tx = tx.Where("timestamp <= ?", v) + tx = tx.Where("created_at <= ?", v) } // 各个网元特殊查询条件 diff --git a/src/modules/network_data/repository/ue_event.go b/src/modules/network_data/repository/ue_event.go index d06730f7..e026e7eb 100644 --- a/src/modules/network_data/repository/ue_event.go +++ b/src/modules/network_data/repository/ue_event.go @@ -29,13 +29,13 @@ func (r UEEvent) SelectByPage(neType string, query map[string]string) ([]model.U if len(v) == 10 { v = v + "000" } - tx = tx.Where("timestamp >= ?", v) + tx = tx.Where("created_at >= ?", v) } if v, ok := query["endTime"]; ok && v != "" { if len(v) == 10 { v = v + "000" } - tx = tx.Where("timestamp <= ?", v) + tx = tx.Where("created_at <= ?", v) } if v, ok := query["eventType"]; ok && v != "" { eventTypes := strings.Split(v, ",")