From f5ae90a9f6618cfe7d95cf3b798811811e1f44cc Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 8 May 2023 19:51:45 +0800 Subject: [PATCH] test --- rule/self_buy_global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/self_buy_global.go b/rule/self_buy_global.go index 0c9192a..e028823 100644 --- a/rule/self_buy_global.go +++ b/rule/self_buy_global.go @@ -37,7 +37,7 @@ func AddOrder(eg *xorm.Engine, req map[string]string) { max.LeavePrice = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(max.LeavePrice)+zhios_order_relate_utils.StrToFloat64(req["price"]), 3) max.OtherPrice = zhios_order_relate_utils.Float64ToStrByPrec(zhios_order_relate_utils.StrToFloat64(max.OtherPrice)+zhios_order_relate_utils.StrToFloat64(req["price"]), 3) max.UpdateTime = time.Now() - eg.Where("id=?", max.Id).Update(max) + eg.Where("id=?", max.Id).AllCols().Update(max) } } }