diff --git a/order-service/src/main/java/com/example/orderservice/mapper/OrderMapper.java b/order-service/src/main/java/com/example/orderservice/mapper/OrderMapper.java index eb71f8b8..0cee1d90 100644 --- a/order-service/src/main/java/com/example/orderservice/mapper/OrderMapper.java +++ b/order-service/src/main/java/com/example/orderservice/mapper/OrderMapper.java @@ -68,7 +68,7 @@ default void addOrderItemRequestToOrderEntity( @Mapping( target = "totalPrice", expression = - "java(items.stream().map(OrderItemResponse::price).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, RoundingMode.HALF_UP))") + "java(items.stream().map(OrderItemResponse::price).reduce(BigDecimal.ZERO, BigDecimal::add))") @Mapping(source = "id", target = "orderId") OrderResponse toResponse(Order order);