This commit is contained in:
苏尹岚
2020-12-29 11:16:50 +08:00
parent 2b275a7b03
commit c3c45852b4
4 changed files with 14 additions and 16 deletions

View File

@@ -642,8 +642,13 @@ func (c *OrderManager) updateOrderOtherInfo(order *model.GoodsOrder, db *dao.Dao
err = nil
} else {
order.JxStoreID = storeDetail.Store.ID
payPercentage = storeDetail.PayPercentage
changePriceType = int(storeDetail.ChangePriceType)
//判断订单结算比例
if storeDetail.VendorPayPercentage != 0 {
payPercentage = storeDetail.VendorPayPercentage
} else {
payPercentage = storeDetail.PayPercentage
}
if payPercentage < 50 {
order.EarningType = model.EarningTypePoints
} else {