少出100

This commit is contained in:
苏尹岚
2020-05-07 17:12:25 +08:00
parent 6715c1404e
commit c32f2d7474
2 changed files with 4 additions and 3 deletions

View File

@@ -395,9 +395,9 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
if price == int(v.SalePrice) {
var earningPrice = 0
if v.ShopPrice < v.SalePrice {
earningPrice = int(v.ShopPrice) * storePayPercentage
earningPrice = int(v.ShopPrice) * storePayPercentage / 100
} else {
earningPrice = int(v.ShopPrice) * storePayPercentage
earningPrice = int(v.ShopPrice) * storePayPercentage / 100
}
v.EarningPrice = int64(earningPrice)
globals.SugarLogger.Debugf("TestearningPrice", earningPrice)