物料订单改为4.5kg以下不分包,以上分包
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user