From 3c51e05070d1bc7512847bd6760041ff6626bc23 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 11 May 2023 11:59:16 +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_mall_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/db_mall_order.go b/db/db_mall_order.go index a391477..e1abdb8 100644 --- a/db/db_mall_order.go +++ b/db/db_mall_order.go @@ -67,9 +67,9 @@ func MallOrderRelateListByTimeByState(Db *xorm.Engine, uid, state, startTime, en func MallOrdByTime(Db *xorm.Engine, uid, buyType, state, stime, etime interface{}) (float64, error) { sess := Db.Where("uid = ? AND state in (?) ", uid, state) if state == "1,2,3" { - sess = sess.And(" create_time > ? AND create_time < ?", uid, state, stime, etime) + sess = sess.And(" create_time > ? AND create_time < ?", stime, etime) } else { - sess = sess.And(" confirm_time > ? AND confirm_time < ?", uid, state, stime, etime) + sess = sess.And(" confirm_time > ? AND confirm_time < ?", stime, etime) } if zhios_condition_statistics_utils.AnyToInt64(buyType) > 0 { sess.And("order_type", buyType)