Skip to content

Commit

Permalink
feat: 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjun0120 committed Jul 4, 2024
1 parent 0d5e8cd commit caed91b
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import com.umc.hackaton.snapspot.category.entity.CategorySpot;
import com.umc.hackaton.snapspot.category.repository.CategoryRepository;
import com.umc.hackaton.snapspot.category.repository.CategorySpotRepository;
import com.umc.hackaton.snapspot.spot.dto.SpotDto;
import com.umc.hackaton.snapspot.spot.entity.Spot;
import com.umc.hackaton.snapspot.user.entity.User;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

Expand Down Expand Up @@ -43,22 +41,6 @@ public List<Spot> showSpotsByCategoryIds(List<Long> categoryIds) {
.collect(Collectors.toList());
spots.addAll(categorySpotsMapped);
}
// if (category != null) {
// List<CategorySpot> categorySpots = categorySpotRepository.findAllByCategory(category);
// for (CategorySpot categorySpot : categorySpots) {
// SpotDto spotDto = new SpotDto();
// User user = categorySpot.getSpot().getUser();
// spotDto.setUser(user);
// spotDto.setLatitude(categorySpot.getSpot().getLatitude());
// spotDto.setLongitude(categorySpot.getSpot().getLongitude());
// spotDto.setTitle(categorySpot.getSpot().getTitle());
// spotDto.setDescription(categorySpot.getSpot().getDescription());
// spotDto.setImgUrl(categorySpot.getSpot().getImgUrl());
//
// Spot spot = spotDto.toEntity();
// spots.add(spot);
// }
// }
}
return new ArrayList<>(spots);
}
Expand Down

0 comments on commit caed91b

Please sign in to comment.