2 Commits
3 changed files with 51 additions and 42 deletions
@@ -27,7 +27,7 @@ public class BookLendService {
private EmployeeRepository employeeRepository;
public List<BookLend> findAll() {
return bookLendRepository.findAll();
return bookLendRepository.findBybookStatus(1);
}
+8 -3
View File
@@ -12,6 +12,12 @@
図書貸出処理
</h1>
<div class="float-end">
<a th:href="@{/topmenu}">
トップメニューへ
</a>
</div>
<p>
以下の図書を貸出します。貸出先の社員IDと返却予定日を入力してください。
</p>
@@ -20,8 +26,7 @@
図書情報
</h2>
<form th:action="@{/bookLend/confirm}" method="POST"
id="lendForm">
<form th:action="@{/bookLend/confirm}" method="POST" id="lendForm">
<div class="card-body">
<table class="info-table">
@@ -36,7 +41,7 @@
<tbody>
<tr>
<!-- <td th:hidden="*{book.bookId}"></td>-->
<!-- <td th:hidden="*{book.bookId}"></td>-->
<td th:text="*{book.bookManageId}"></td>
<td th:text="*{book.title}"></td>
<td th:text="*{book.author}"></td>
@@ -10,6 +10,10 @@
<body>
<h1>貸出中図書一覧</h1>
<div class="float-end">
<a th:href="@{/topmenu}">トップメニューへ</a>
</div>
<table>