From b7e4948fbbd0e578e5ca3980d6432634acc6200b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 8 Aug 2025 19:17:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cdr/ue=E6=9F=A5=E8=AF=A2=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AD=97=E6=AE=B5=E6=94=B9=E7=94=A8=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=8C=E4=BC=A0=E5=85=A5=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=97=B6=E5=8C=BAUTC0=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/repository/cdr_event.go | 4 ++-- src/modules/network_data/repository/ue_event.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, ",")