From cac70dbcfc8715ff9a777a07c1e1e8b907556a39 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 22 Mar 2024 15:02:57 +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_b2c_ord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_b2c_ord.go b/db/db_b2c_ord.go index 9b08f72..abb39b5 100644 --- a/db/db_b2c_ord.go +++ b/db/db_b2c_ord.go @@ -30,7 +30,7 @@ func B2cOrdByTime(Db *xorm.Engine, uid, buyType, state, stime, etime interface{} } func B2cOrdByTimeWithCount(Db *xorm.Engine, uid, buyType, state, stime, etime interface{}) (int64, error) { - total, err := Db.Where("uid = ? AND confirm_time > ? AND confirm_time < ?", uid, stime, etime).In("state", state).Count(&model.B2cOrd{}) + total, err := Db.Where("uid = ? AND finish_time > ? AND finish_time < ?", uid, stime, etime).In("state", state).Count(&model.B2cOrd{}) fmt.Println(err) fmt.Println(total) if err != nil {