订单亏损规则,查询审核信息带门店等级

This commit is contained in:
苏尹岚
2020-06-12 17:13:27 +08:00
parent 290d2f4693
commit bb0d49efd4
2 changed files with 3 additions and 2 deletions

View File

@@ -1443,7 +1443,7 @@ func OrderProfitWarning(order *model.GoodsOrder) {
if storeDetail != nil && err == nil {
payPercentage := storeDetail.PayPercentage
if payPercentage >= 50 {
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney-order.EarningPrice)) / 100
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney-order.ShopPrice)) / 100
} else {
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney*int64(payPercentage)/200)) / 100
}