物料订单配送费测试
This commit is contained in:
@@ -1534,14 +1534,13 @@ func tryToSplitMatterOrder(jxOrder *JxOrderInfo) (outOrders []*JxOrderInfo, frei
|
||||
}
|
||||
}
|
||||
for _, v := range outOrders {
|
||||
fmt.Println("v", utils.Format4Output(v, false))
|
||||
fmt.Println("freightPrice", freightPrice)
|
||||
if v.Weight <= 3000 {
|
||||
freightPrice += 500
|
||||
} else if v.Weight > 3000 && v.Weight <= splitMatterOrderMinWeight {
|
||||
freightPrice += utils.Float64TwoInt64(500 + math.Ceil((utils.Int2Float64(v.Weight)-3000)/1000)*200)
|
||||
}
|
||||
}
|
||||
fmt.Println("outOrders", outOrders)
|
||||
return outOrders, freightPrice, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user