格式优化

This commit is contained in:
renyutian
2019-04-04 10:16:35 +08:00
parent 53733320c2
commit f28be52906
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ func (p *PurchaseHandler) OrderDetail2Financial(orderData map[string]interface{}
if xMap["platPayMoney"] == nil {
orderFinancial.PmFreightDiscountMoney = discountPrice
} else {
orderFinancial.PmFreightDiscountMoney = utils.MustInterface2Int64(xMap["platPayMoney"])
orderFinancial.PmFreightDiscountMoney = int64(utils.MustInterface2Float64(xMap["platPayMoney"]))
orderFinancial.FreightDiscountMoney = discountPrice - orderFinancial.PmFreightDiscountMoney
}
}