Skip to content

Commit

Permalink
Merge pull request #69 from Hanaro-trip-together-bank/feature/trip-place
Browse files Browse the repository at this point in the history
fix: 카멜케이스 변경-service 누락 복구
  • Loading branch information
mummhy0811 authored May 30, 2024
2 parents e10a2f1 + e404000 commit d00f1ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ public void updatePlaceOrder(Long tripIdx, UpdateOrderReqDto dto) {
List<TripPlaceOrderReqDto> 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<dtos.size();i++){
TripPlace tripPlace = checkTripPlaceExists(dtos.get(i).getTrip_placeIdx());
TripPlace tripPlace = checkTripPlaceExists(dtos.get(i).getTripPlaceIdx());
if(!Objects.equals(tripPlace.getTrip().getTripIdx(), tripIdx)){
throw new ApiException(ExceptionEnum.TEAM_NOT_MATCH);
}
Expand Down

0 comments on commit d00f1ed

Please sign in to comment.