From e42f3765ba7e084b39cc8b6acb533ded58d6b36e Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 29 Jul 2022 21:01:40 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v1.0.3=20=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hdl/hdl_condition.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hdl/hdl_condition.go b/hdl/hdl_condition.go index f56c3cc..427f339 100644 --- a/hdl/hdl_condition.go +++ b/hdl/hdl_condition.go @@ -16,7 +16,7 @@ func OwnBuyTotal(engine *xorm.Engine, uid interface{}, task map[string]string, t stime := time.Date(t.Year(), t.Month(), t.Day()-zhios_condition_statistics_utils.StrToInt(task["within_days"]), t.Hour(), 0, 0, 0, t.Location()).Unix() etime := t.Unix() //联盟结算后的 - total, err := db.OrderListCountByUIDByOrderTypeByTime(engine, uid, 0, "2,3,5", stime, etime) + total, err := db.OrderListCountByUIDByOrderTypeByTime(engine, uid, 0, "1,2,3,5", stime, etime) if err != nil { zhios_condition_statistics_logx.Warn(err) return "" @@ -39,7 +39,7 @@ func SettleOrderSum(engine *xorm.Engine, uid interface{}, task map[string]string stime := time.Date(t.Year(), t.Month(), t.Day()-zhios_condition_statistics_utils.StrToInt(task["within_days"]), t.Hour(), 0, 0, 0, t.Location()).Unix() etime := t.Unix() // 用户分佣的订单 - idAmountMap, err := db.OrderRelateListByTimeByState(engine, uid, "2,3,5", stime, etime) + idAmountMap, err := db.OrderRelateListByTimeByState(engine, uid, "1,2,3,5", stime, etime) if err != nil { zhios_condition_statistics_logx.Warn(err) return "" @@ -161,7 +161,7 @@ func OwnbuySum(engine *xorm.Engine, uid interface{}, task map[string]string, t t if zhios_condition_statistics_utils.InArr(task["task_type_pvd"], []string{"0", "1"}) { stime := time.Date(t.Year(), t.Month(), t.Day()-zhios_condition_statistics_utils.StrToInt(task["within_days"]), t.Hour(), 0, 0, 0, t.Location()).Unix() etime := t.Unix() - total, err = db.OrderListPaidPriceByUIDByOrderTypeByTime(engine, uid, 0, "2,3,5", stime, etime) + total, err = db.OrderListPaidPriceByUIDByOrderTypeByTime(engine, uid, 0, "1,2,3,5", stime, etime) if err != nil { zhios_condition_statistics_logx.Warn(err) return "" @@ -265,7 +265,7 @@ WHERE olr.uid = ? FROM ord_list_relate olr JOIN ord_list ol ON olr.oid = ol.ord_id WHERE olr.uid = ? - AND ol.state in(2,3,5) and olr.level>0; + AND ol.state in(1,2,3,5) and olr.level>0; ` guideResult, err := db.QueryNativeString(engine, guideSqlTpl, uid) if err == nil {