From 40cb1232a0bbad67463b31048dc08945abc67861 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Wed, 11 Dec 2024 15:48:34 +0800 Subject: [PATCH] update --- src/implement/platform_revenue_data_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/platform_revenue_data_implement.go b/src/implement/platform_revenue_data_implement.go index 96c74fd..6e19564 100644 --- a/src/implement/platform_revenue_data_implement.go +++ b/src/implement/platform_revenue_data_implement.go @@ -31,10 +31,10 @@ func (p PlatformRevenueDataDb) PlatformRevenueDataFindAndCount(page, limit int, session = session.Where("kind = ?", kind) } if startAt != "" { - session = session.Where("start_at >= ?", startAt) + session = session.Where("create_at >= ?", startAt) } if endAt != "" { - session = session.Where("end_at <= ?", endAt) + session = session.Where("create_at <= ?", endAt) } total, err := session.Limit(limit, (page-1)*limit).FindAndCount(&m) if err != nil {