From d69870c8829e9882156740c3a8648e3d4b39a77f Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Sun, 8 Oct 2023 16:54:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/order.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/repositories/order.go b/service/repositories/order.go index c1b4958e..dc18b190 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -922,13 +922,13 @@ func (d *defaultOrder) List(ctx context.Context, in *ListReq) (res *ListRes, err // 下单时间 switch in.OrderCycle { case "within_one_month": - model = model.Where("ctime >?", time.Now().UTC().AddDate(0, -1, 0).Unix()) + model = model.Where("ctime >?", time.Now().UTC().AddDate(0, -1, 0)) case "within_three_month": - model = model.Where("ctime >?", time.Now().UTC().AddDate(0, -3, 0).Unix()) + model = model.Where("ctime >?", time.Now().UTC().AddDate(0, -3, 0)) case "within_six_month": - model = model.Where("ctime >?", time.Now().UTC().AddDate(0, -6, 0).Unix()) + model = model.Where("ctime >?", time.Now().UTC().AddDate(0, -6, 0)) case "within_one_year": - model = model.Where("ctime >?", time.Now().UTC().AddDate(-1, 0, 0).Unix()) + model = model.Where("ctime >?", time.Now().UTC().AddDate(-1, 0, 0)) } } var count int64