fix:订单列表
This commit is contained in:
parent
88f407edb9
commit
d69870c882
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user