From b0c157acd0ae1e2259affc131675a70a4049ba0d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 17 May 2024 15:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/db_order_count.go | 4 ++++ 1 file changed, 4 insertions(+) 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