菜市物料同步到果园修改
This commit is contained in:
@@ -698,7 +698,6 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
} else if outJxOrder.Weight > 3000 && outJxOrder.Weight <= splitMatterOrderMinWeight {
|
||||
outJxOrder.FreightPrice = utils.Float64TwoInt64(500 + math.Ceil((utils.Int2Float64(outJxOrder.Weight)-3000)/1000)*200)
|
||||
} else {
|
||||
fmt.Println("jxOrder", utils.Format4Output(jxOrder, false))
|
||||
_, freightPrice, _ := tryToSplitMatterOrder(jxOrder)
|
||||
outJxOrder.FreightPrice = freightPrice
|
||||
}
|
||||
@@ -1545,7 +1544,6 @@ func tryToSplitMatterOrder(jxOrder *JxOrderInfo) (outOrders []*JxOrderInfo, frei
|
||||
freightPrice += utils.Float64TwoInt64(500 + math.Ceil((utils.Int2Float64(v.Weight)-3000)/1000)*200)
|
||||
}
|
||||
}
|
||||
fmt.Println("outOrders", utils.Format4Output(outOrders, false))
|
||||
return outOrders, freightPrice, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user