This commit is contained in:
邹宗楠
2025-04-18 13:48:15 +08:00
parent 625ddfe495
commit 61583f5fa3

View File

@@ -92,11 +92,12 @@ func (p *PurchaseHandler) getOrder(vendorOrgCode string, vendorOrderID int64, ve
}
order.Status = p.getStatusFromVendorStatus(*orderDetail.OrderStatus)
originalList := strings.Split(*orderDetail.ReceiveInfo.ReceiverPoi, ",")
order.ConsigneeLng = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[0]))
order.ConsigneeLat = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[1]))
if orderDetail.ReceiveInfo.ReceiverPoi != nil {
originalList := strings.Split(*orderDetail.ReceiveInfo.ReceiverPoi, ",")
order.ConsigneeLng = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[0]))
order.ConsigneeLat = jxutils.StandardCoordinate2Int(utils.Str2Float64(originalList[1]))
}
order.DiscountMoney = *orderDetail.DiscountFee
order.PmSubsidyMoney = *orderDetail.SkuDiscountPlatformFee // 平台承担优惠
// 添加需要赠送的东西(暂时没有赠品套餐直接商品)
multiSkuMap := make(map[int]int)
@@ -989,5 +990,5 @@ func (c *PurchaseHandler) GetPlatformLogisticsFee(order *model.GoodsOrder) (int6
// ApplyCompensationOrder 订单索赔
func (c *PurchaseHandler) ApplyCompensationOrder(order *model.GoodsOrder) (string, error) {
return "",nil
return "", nil
}