物料订单重量*1000
This commit is contained in:
@@ -1307,25 +1307,25 @@ func loop(weightList []*JxSkuInfo2, jxOrder *JxOrderInfo, flag bool) (outOrder *
|
|||||||
sum3 := 0
|
sum3 := 0
|
||||||
for i := 0; i < len(weightList); i++ {
|
for i := 0; i < len(weightList); i++ {
|
||||||
if flag {
|
if flag {
|
||||||
if weightList[i].Weight+sum5 <= 5 {
|
if weightList[i].Weight+sum5 <= 5000 {
|
||||||
sum5 += weightList[i].Weight
|
sum5 += weightList[i].Weight
|
||||||
weightList[i].GroupSign = true
|
weightList[i].GroupSign = true
|
||||||
outOrder.Weight += weightList[i].Weight
|
outOrder.Weight += weightList[i].Weight
|
||||||
outOrder.Skus = append(outOrder.Skus, jxOrderChange(weightList[i]))
|
outOrder.Skus = append(outOrder.Skus, jxOrderChange(weightList[i]))
|
||||||
} else {
|
} else {
|
||||||
if sum5 >= 5 {
|
if sum5 >= 5000 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if weightList[i].Weight+sum3 <= 3 {
|
if weightList[i].Weight+sum3 <= 3000 {
|
||||||
sum3 += weightList[i].Weight
|
sum3 += weightList[i].Weight
|
||||||
weightList[i].GroupSign = true
|
weightList[i].GroupSign = true
|
||||||
outOrder.Weight += weightList[i].Weight
|
outOrder.Weight += weightList[i].Weight
|
||||||
outOrder.Skus = append(outOrder.Skus, jxOrderChange(weightList[i]))
|
outOrder.Skus = append(outOrder.Skus, jxOrderChange(weightList[i]))
|
||||||
} else {
|
} else {
|
||||||
if sum3 >= 3 {
|
if sum3 >= 3000 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user