- 活动价保留到到角
This commit is contained in:
@@ -2,6 +2,7 @@ package act
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -142,6 +143,9 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac
|
|||||||
percentage = v.PricePercentage
|
percentage = v.PricePercentage
|
||||||
}
|
}
|
||||||
actSkuMap.ActualActPrice = int64(jxutils.CaculateSkuVendorPrice(int(actSkuMap.VendorPrice), percentage, 0))
|
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 {
|
if actSkuMap.ActualActPrice <= 0 {
|
||||||
actSkuMap.ActualActPrice = 1
|
actSkuMap.ActualActPrice = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user