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