diff --git a/db/db_order_count.go b/db/db_order_count.go index 322d9c9..9473567 100644 --- a/db/db_order_count.go +++ b/db/db_order_count.go @@ -24,6 +24,10 @@ func OrderListCountByUIDByOrderTypeByTimeNew(Db *xorm.Engine, uid interface{}, t timeType2 = "settle_at" timeType4 = "settle_at" } + if types == "free" { + timeType = "create_at" + state = []string{"0", "1", "2", "3", "5"} + } t := time.Now() stime := time.Date(t.Year(), t.Month(), t.Day()-task.WithinDays, t.Hour(), 0, 0, 0, t.Location()) etime := t