物料订单配送费测试

This commit is contained in:
苏尹岚
2020-04-28 10:49:30 +08:00
parent 9c1e08b287
commit bd432d00f2

View File

@@ -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
}