Skip to content

Commit

Permalink
Merge branch 'feature/order' of https://github.com/Orange-Co/DDANZI_S…
Browse files Browse the repository at this point in the history
…erver into deploy
  • Loading branch information
Kang1221 committed Aug 19, 2024
2 parents ad4780b + f7f9342 commit 305bb59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/co/orange/ddanzi/service/OrderService.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Random;

@Slf4j
Expand Down Expand Up @@ -99,7 +100,7 @@ public ApiResponse<?> createOrder(CreateOrderRequestDto requestDto){
createOrderOptionDetails(order, requestDto.getSelectedOptionDetailIdList());
log.info("Created order option details.");

return ApiResponse.onSuccess(Success.CREATE_ORDER_SUCCESS, setOrderResponseDto(user, order, item, payment));
return ApiResponse.onSuccess(Success.CREATE_ORDER_SUCCESS, Map.of("orderId", order.getId()));
}

@Transactional
Expand Down

0 comments on commit 305bb59

Please sign in to comment.