diff --git a/team1/pom.xml b/team1/pom.xml index 75ae850..0d4f3c7 100644 --- a/team1/pom.xml +++ b/team1/pom.xml @@ -74,11 +74,6 @@ spring-boot-starter-webmvc-test test - - com.example - HelloSpring - 0.0.1-SNAPSHOT - diff --git a/team1/src/main/java/com/example/demo/repository/Borrow_BooksRepository.java b/team1/src/main/java/com/example/demo/repository/Borrow_BooksRepository.java index a1595fc..482ec9f 100644 --- a/team1/src/main/java/com/example/demo/repository/Borrow_BooksRepository.java +++ b/team1/src/main/java/com/example/demo/repository/Borrow_BooksRepository.java @@ -1,5 +1,7 @@ package com.example.demo.repository; +import java.util.Optional; + import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @@ -8,4 +10,9 @@ import com.example.demo.entity.Borrow_booksEntity; @Repository public interface Borrow_BooksRepository extends JpaRepository { + /* + * 申請者IDで検索 + * */ + Optional findByIdApplicant(Integer idApplicant); + } diff --git a/team1/src/main/resources/templates/applicationList.html b/team1/src/main/resources/templates/applicationList.html index 78c0050..3230bdf 100644 --- a/team1/src/main/resources/templates/applicationList.html +++ b/team1/src/main/resources/templates/applicationList.html @@ -25,13 +25,22 @@
- + @@ -157,6 +166,5 @@ document.getElementById('dateRequest').selectedIndex = 0; } - \ No newline at end of file
申請ID - + +