- GoodsOrder添加PmSubsidyMoney

This commit is contained in:
gazebo
2019-06-18 15:02:26 +08:00
parent 41a6e71708
commit 45c14d27f2
4 changed files with 5 additions and 3 deletions

View File

@@ -105,7 +105,8 @@ func (c *PurchaseHandler) getOrder(orderID string) (order *model.GoodsOrder, ord
task.GetResult(0)
if order != nil {
if orderSettlement != nil {
order.TotalShopMoney = orderSettlement.SettlementAmount + orderSettlement.PlatOrderGoodsDiscountMoney
order.TotalShopMoney = orderSettlement.SettlementAmount
order.PmSubsidyMoney = orderSettlement.PlatOrderGoodsDiscountMoney + orderSettlement.PlatSkuGoodsDiscountMoney
}
}
// if orderMap, err = api.JdAPI.QuerySingleOrder(orderID); err == nil {