This commit is contained in:
邹宗楠
2022-07-11 10:34:15 +08:00
parent 32ac1c6a01
commit 3e351aa96a
2 changed files with 16 additions and 11 deletions

View File

@@ -1031,7 +1031,7 @@ func (c *OrderManager) RefreshHistoryOrdersEarningPrice(ctx *jxcontext.Context,
store, _ := dao.GetStoreDetail(db, storeID, order.VendorID, "")
payPercentage := store.PayPercentage
if payPercentage <= 50 {
order.NewEarningPrice = order.TotalShopMoney * int64((100 - payPercentage/2)) / 100
order.NewEarningPrice = order.TotalShopMoney * utils.Float64TwoInt64(utils.Int2Float64(100)-utils.Int2Float64(payPercentage)/2) / 100
} else {
order.NewEarningPrice = order.EarningPrice
}