From 075e936dc099279dc7c156493cc8f650b8c58988 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 31 Jul 2018 09:57:30 +0800 Subject: [PATCH] - use actual price when creating waybill. --- business/controller/dada/waybill.go | 2 +- business/controller/mtps/waybill.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/controller/dada/waybill.go b/business/controller/dada/waybill.go index bd0c5bd8a..6c87d5965 100644 --- a/business/controller/dada/waybill.go +++ b/business/controller/dada/waybill.go @@ -79,7 +79,7 @@ func (c *WaybillController) CreateWaybill(order *model.GoodsOrder) (err error) { billParams := &dadaapi.OperateOrderRequiredParams{ ShopNo: utils.Int2Str(order.StoreID), // 当前达达的门店号与京西是一样的 OriginID: jxutils.ComposeUniversalOrderID(order.VendorOrderID, order.VendorID), - CargoPrice: jxutils.IntPrice2Standard(order.SalePrice), + CargoPrice: jxutils.IntPrice2Standard(order.ActualPayPrice), IsPrepay: 0, ReceiverName: order.ConsigneeName, ReceiverAddress: order.ConsigneeAddress, diff --git a/business/controller/mtps/waybill.go b/business/controller/mtps/waybill.go index b3573bffe..358a26d89 100644 --- a/business/controller/mtps/waybill.go +++ b/business/controller/mtps/waybill.go @@ -168,7 +168,7 @@ func (c *WaybillController) CreateWaybill(order *model.GoodsOrder) (err error) { CoordinateType: model.CoordinateTypeMars, ReceiverLng: jxutils.StandardCoordinate2Int(lngFloat), ReceiverLat: jxutils.StandardCoordinate2Int(latFloat), - GoodsValue: jxutils.IntPrice2Standard(order.SalePrice), // todo 超价处理 + GoodsValue: jxutils.IntPrice2Standard(order.ActualPayPrice), // todo 超价处理 GoodsWeight: float64(order.Weight) / 1000, // ExpectedDeliveryTime: order.ExpectedDeliveredTime.Unix(), OrderType: mtpsapi.OrderTypeASAP,