Skip to content

Commit

Permalink
Merge pull request #79 from Team-KeepGoing/feature/book
Browse files Browse the repository at this point in the history
Edit :: BookMapper
  • Loading branch information
priverg authored Sep 5, 2024
2 parents 806192e + 984f51e commit 4b040d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public BookResponseDto entityToDto(Book entity) {
return BookResponseDto.builder()
.id(entity.getId())
.bookName(entity.getBookName())
.registrationDate(entity.getRegistrationDate())
.writer(entity.getWriter())
.imageUrl(entity.getImageUrl())
.rentDate(entity.getRentDate())
.state(entity.getState())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public BaseResponse alertMyBook(Authentication auth, String dateString) {
User user = getUserByAuthentication(auth);
DateRange dateRange = DateRange.fromDateString(dateString, "yyyyMMdd");

List<Book> books = bookRepository.findByBorrowerAndRentDateBetween(user, dateRange.getStart(), dateRange.getEnd());
List<Book> books = bookRepository.findByBorrowerAndRentDateBetween(user, dateRange.getSt(), dateRange.getEnd());
return new BaseResponse(HttpStatus.OK, "책 가져오기 성공", books);
}

Expand Down

0 comments on commit 4b040d6

Please sign in to comment.