- 门店价限制不能为负数
- 京东门店价限制为最少一分
This commit is contained in:
@@ -178,7 +178,11 @@ func GetSliceLen(list interface{}) int {
|
||||
}
|
||||
|
||||
func CaculateSkuVendorPrice(price int, percentage int) int {
|
||||
return int(math.Round(float64(price*percentage) / 100))
|
||||
storePrice := int(math.Round(float64(price*percentage) / 100))
|
||||
if storePrice < 0 {
|
||||
storePrice = 0
|
||||
}
|
||||
return storePrice
|
||||
}
|
||||
|
||||
// 生成一个不重复的临时ID
|
||||
|
||||
Reference in New Issue
Block a user