This commit is contained in:
h-seya
2026-09-25 12:44:11 +09:00
3 changed files with 20 additions and 54 deletions

View File

@@ -1,5 +0,0 @@
package com.example.demo.form;
public class BookForm {
}

View File

@@ -1,11 +0,0 @@
package com.example.demo.service;
import java.util.List;
import com.example.demo.entity.Book;
public interface BookService {
String booklist(Book book);
List<java.awt.print.Book> findAll();
}

View File

@@ -37,7 +37,7 @@
<tbody>
<tr th:each="book : ${book}">
<td th:text="*{book.bookManageId}"></td>
<td th:text="*{book.isbn}"></td>
<td th:text="*{book.title}"></td>
@@ -51,48 +51,30 @@
<td th:text="*{book.createdAt}"></td>
<td th:text="*{book.updatedAt}"></td>
<td th:text="*{book.employee != null ? book.employee.employeeId : '-'}"></td>
<td th:text="*{book.bookLends != null ? book.bookLends.bookStatus : '-'}"></td>
<td
th:text="*{book.bookLends != null ? (book.bookLends.bookStatus == 0 ? '貸出可': '貸出不可') : '-'}">
</td>
<td>
<form method="post" action="/bookLend">
<input type="hidden" name="bookManageId" th:value="${book.bookManageId}">
<button type="submit">貸出</button>
</form>
<form method="get" action="/updateconfirm">
<input type="hidden" name="bookManageId" th:value="${book.bookManageId}">
<button type="submit">更新</button>
</form>
<form method="get" action="/delete">
<input type="hidden" name="bookManageId" th:value="${book.bookManageId}">
<button type="submit">削除</button>
</form>
</td>
</tr>
</tbody>
</table>
<button type="submit" class="btn-login">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" />
<polyline points="10 17 15 12 10 7" />
<line x1="15" y1="12" x2="3" y2="12" />
</svg>
貸出
</button>
</form>
<button type="submit" class="btn-login">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" />
<polyline points="10 17 15 12 10 7" />
<line x1="15" y1="12" x2="3" y2="12" />
</svg>
貸出
</button>
</form>
<form method="post" action="update">
<button type="submit" class="btn-login">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" />
<polyline points="10 17 15 12 10 7" />
<line x1="15" y1="12" x2="3" y2="12" />
</svg>
更新
</button>
</form>
</body>