From fd45eae813955a5dee7709fda05ea47c856554e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 9 Mar 2020 16:27:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E4=B8=8B=E5=8D=95=E7=BB=88?= =?UTF-8?q?=E6=9E=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jx/localjx/order.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 4979ca0d3..e29042ccc 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -5,6 +5,7 @@ import ( "fmt" "math" "sort" + "strings" "time" "git.rosy.net.cn/jx-callback/business/jxstore/event" @@ -598,8 +599,8 @@ func orderSolutionForWuLiao(order *model.GoodsOrder) (err error) { if order.FromStoreID != 0 { var ( goodsNos []string - prices []float64 - quantities []int + prices []string + quantities []string db = dao.GetDB() ) err = changeOrderStatus(order.VendorOrderID, model.OrderStatusDelivering, "") @@ -613,8 +614,8 @@ func orderSolutionForWuLiao(order *model.GoodsOrder) (err error) { continue } goodsNos = append(goodsNos, skus[0].EclpID) - prices = append(prices, 0.00) - quantities = append(quantities, v.Count) + prices = append(prices, "0") + quantities = append(quantities, utils.Int2Str(v.Count)) } result, err := api.JdEclpAPI.AddOrder(&jdeclpapi.AddOrderParam{ IsvUUID: order.VendorOrderID, @@ -628,9 +629,9 @@ func orderSolutionForWuLiao(order *model.GoodsOrder) (err error) { ConsigneeMobile: order.ConsigneeMobile, ConsigneeAddress: order.ConsigneeAddress, OrderMark: jdeclpapi.OrderMark, - GoodsNo: goodsNos, - Price: prices, - Quantity: quantities, + IsvGoodsNo: strings.Join(goodsNos, ","), + Price: strings.Join(prices, ","), + Quantity: strings.Join(quantities, ","), }) if err != nil { return err