From e404000a7d0d23aa6e1371343a8b3aef96e6970a Mon Sep 17 00:00:00 2001 From: mummhy0811 Date: Thu, 30 May 2024 14:50:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B9=B4=EB=A9=9C=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=20=EB=B3=80=EA=B2=BD-service=20=EB=88=84=EB=9D=BD=20?= =?UTF-8?q?=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../triptogether/tripPlace/service/TripPlaceService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hanaro/triptogether/tripPlace/service/TripPlaceService.java b/src/main/java/com/hanaro/triptogether/tripPlace/service/TripPlaceService.java index 78a4f18..42c8ab7 100644 --- a/src/main/java/com/hanaro/triptogether/tripPlace/service/TripPlaceService.java +++ b/src/main/java/com/hanaro/triptogether/tripPlace/service/TripPlaceService.java @@ -80,11 +80,11 @@ public void updatePlaceOrder(Long tripIdx, UpdateOrderReqDto dto) { List dtos = dto.getOrders(); Member member = memberService.findByMemberIdx(dto.getMemberIdx()); int num = tripPlaceRepository.countByTripId(tripIdx, dto.getTripDate()); - if (dtos.stream().map(TripPlaceOrderReqDto::getTrip_placeIdx).distinct().count() != num){ //중복 및 사이즈 체크 + if (dtos.stream().map(TripPlaceOrderReqDto::getTripPlaceIdx).distinct().count() != num){ //중복 및 사이즈 체크 throw new ApiException(ExceptionEnum.INVALID_ORDER_LIST); } for(int i=0;i