From 54a55dcac09d2517bcf749d1c719e4d2c72ffb40 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 12 Sep 2019 16:55:11 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B4=BB=E5=8A=A8=E4=BB=B7=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E5=88=B0=E5=88=B0=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 349890b60..bb0b24dcd 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -2,6 +2,7 @@ package act import ( "fmt" + "math" "time" "git.rosy.net.cn/baseapi/utils" @@ -142,6 +143,9 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac percentage = v.PricePercentage } actSkuMap.ActualActPrice = int64(jxutils.CaculateSkuVendorPrice(int(actSkuMap.VendorPrice), percentage, 0)) + if actSkuMap.ActualActPrice > 10 { + actSkuMap.ActualActPrice = int64(math.Round(float64(actSkuMap.ActualActPrice)/10) * 10) + } } if actSkuMap.ActualActPrice <= 0 { actSkuMap.ActualActPrice = 1