From 4fad73d8346af87d9e585a0c0816b0b52e514b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sun, 26 Apr 2020 08:46:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E8=AE=A2=E5=8D=95=E6=94=B9?= =?UTF-8?q?=E4=B8=BA4.5kg=E4=BB=A5=E4=B8=8B=E4=B8=8D=E5=88=86=E5=8C=85?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E4=B8=8A=E5=88=86=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jx/localjx/order.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 1724eed6f..95252b9c5 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -48,6 +48,8 @@ const ( autoCancelOrderReason = "支付超时,系统自动取消!" cancelMatterOrderReason = "失败重发!" + + splitMatterOrderMinWeight = 4500 //物料订单分包最少要4.5kg ) type JxSkuInfo struct { @@ -841,7 +843,7 @@ func orderSolutionForWuLiao(order *model.GoodsOrder) (err error) { order.WaybillVendorID = model.VendorIDJDWL dao.UpdateEntity(db, order, "WaybillVendorID") orderSkus := goods[0].Skus - if order.Weight <= 5000 { //如果总重量小于5kg就直接发单 + if order.Weight <= splitMatterOrderMinWeight { //2020-04-26, 从5kg 改为小于4.5kg var ( goodsNos []string prices []string @@ -1540,7 +1542,7 @@ func loop2(weightList []*JxSkuInfo2, storeID int, weight *int) (outOrder *JxOrde outOrder = &JxOrderInfo{} outOrder.StoreID = storeID sum3 := 0 - if *weight <= 5000 { + if *weight <= splitMatterOrderMinWeight { for i := 0; i < len(weightList); i++ { buildOutOrderSkus(weightList[i], outOrder) }