|
|
@ -310,7 +310,7 @@ public class QuoteDetailServiceImpl extends ServiceImpl<QuoteDetailMapper, Quote |
|
|
packCost = num1.add(num2); |
|
|
packCost = num1.add(num2); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (otherPackCost.isPresent()){ |
|
|
|
|
|
|
|
|
if (otherPackCost.isPresent() && Objects.nonNull(otherPackCost.get().getNumValue())){ |
|
|
packCost = packCost.add(otherPackCost.get().getNumValue()); |
|
|
packCost = packCost.add(otherPackCost.get().getNumValue()); |
|
|
} |
|
|
} |
|
|
return packCost; |
|
|
return packCost; |
|
|
@ -355,7 +355,7 @@ public class QuoteDetailServiceImpl extends ServiceImpl<QuoteDetailMapper, Quote |
|
|
shippingCost = shipCost.get().getNumValue().divide(deliverQuantity.get().getNumValue()); |
|
|
shippingCost = shipCost.get().getNumValue().divide(deliverQuantity.get().getNumValue()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (otherShipCost.isPresent()){ |
|
|
|
|
|
|
|
|
if (otherShipCost.isPresent() && Objects.nonNull(otherShipCost.get().getNumValue())){ |
|
|
shippingCost = shippingCost.add(otherShipCost.get().getNumValue()); |
|
|
shippingCost = shippingCost.add(otherShipCost.get().getNumValue()); |
|
|
} |
|
|
} |
|
|
return shippingCost; |
|
|
return shippingCost; |
|
|
|