earningprice改名

This commit is contained in:
苏尹岚
2020-03-19 17:20:00 +08:00
parent f84e17f002
commit c53102acd7
5 changed files with 10 additions and 10 deletions

View File

@@ -542,9 +542,9 @@ func RefreshOrderSkuRelated(order *model.GoodsOrder) *model.GoodsOrder {
func RefreshOrderEarningPrice2(order *model.GoodsOrder, payPercentage int) *model.GoodsOrder {
if payPercentage <= 50 {
order.EarningPrice2 = order.TotalShopMoney * int64((100 - payPercentage/2)) / 10000
order.NewEarningPrice = order.TotalShopMoney * int64((100 - payPercentage/2)) / 10000
} else {
order.EarningPrice2 = order.EarningPrice
order.NewEarningPrice = order.EarningPrice
}
return order
}