Merge branch 'y-kumaki' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.example.demo.repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@@ -8,4 +10,6 @@ import com.example.demo.entity.BookLend;
|
||||
@Repository
|
||||
public interface BookLendRepository extends JpaRepository<BookLend, Integer> {
|
||||
|
||||
List<BookLend> findBybookStatus(Integer bookStatus);
|
||||
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public class BookLendService {
|
||||
private BookLendRepository bookLendRepository;
|
||||
|
||||
public List<BookLend> findAll() {
|
||||
return bookLendRepository.findAll();
|
||||
return bookLendRepository.findBybookStatus(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user