42 Commits

Author SHA1 Message Date
y-kumaki
441d91d1e2 [ADD] 貸出中図書一覧の返却処理を追加しました。 2026-09-29 13:44:21 +09:00
y-kumaki
da5cc25c34 [ADD] 貸出一覧表示の貸出中のみ表示される処理を追加しました。 2026-09-28 10:52:46 +09:00
y-kumaki
ed78956074 no message 2026-09-25 15:30:31 +09:00
y-kumaki
ea262e10c5 no message 2026-09-25 13:30:55 +09:00
s-tajihi
47c2df9db9 [edit] メソッド名の変更をしました 2026-09-25 10:56:37 +09:00
h-seya
7de868d37b [EDIT]:図書一覧画面へ遷移できなくなっていた不具合を修正 2026-09-25 10:50:28 +09:00
s-tajihi
d7d6b9b3f5 [edit] 図書一覧HTMLの修正をしました 2026-09-25 10:47:24 +09:00
s-tajihi
19615ef3f4 [edit] 図書一覧表示の修正を行いました 2026-09-25 10:45:49 +09:00
s-tajihi
f059dc9f53 Merge branch 'h-seya' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi
# Conflicts:
#	src/main/resources/templates/book.html
#	src/main/resources/templates/topmenu.html
2026-09-25 10:43:35 +09:00
s-tajihi
0ce3d392a9 Merge branch 'h-seya' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi
# Conflicts:
#	src/main/resources/templates/book.html
#	src/main/resources/templates/topmenu.html
2026-09-25 10:42:35 +09:00
h-seya
0a48649741 Merge branch 's-tajihi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya
# Conflicts:
#	src/main/resources/templates/book.html
#	src/main/resources/templates/topmenu.html
2026-09-25 09:59:54 +09:00
s-tajihi
24caa7f6e2 [edit] カテゴリー名・サブカテゴリー名表示の編集をしました 2026-09-24 16:09:42 +09:00
h-seya
004ea0d5b9 [ADD]:ログイン・ログアウト機能実装 2026-09-24 16:04:12 +09:00
s-tajihi
1488f42039 Merge branch 'y-watanabe' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi 2026-09-24 13:49:02 +09:00
h-seya
21dd389deb [EDIT]:ファイル内の詳細部分修正 2026-09-24 13:04:43 +09:00
h-seya
bef3b58ef4 [ADD]:accountテーブル用のEntityクラスを作成 2026-09-24 13:02:56 +09:00
s-tajihi
268df2f363 Merge branch 'y-watanabe' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi 2026-09-24 12:53:17 +09:00
s-tajihi
a6a42295c4 [edit] 図書一覧表示のエラー箇所を修正しました 2026-09-24 12:52:54 +09:00
s-tajihi
ab48f30b6e [add] BookLendとEmployeeのEntityを作成しました 2026-09-24 12:51:58 +09:00
s-tajihi
0723c559f0 Merge branch 'h-hirane' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi 2026-09-24 09:13:46 +09:00
47fb36b066 [edit] トップメニューからパスワード変更画面に遷移する修正 2026-09-18 18:37:14 +09:00
h-seya
7548257db6 Merge branch 'y-kumaki' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 17:29:51 +09:00
h-seya
93473b1822 Merge branch 'h-hirane' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 17:29:44 +09:00
y-kumaki
853af1ec43 「ADD]図書一覧から更新入力への遷移と、図書更新確認から図書一覧への遷移を追加しました。 2026-09-18 17:10:09 +09:00
s-tajihi
36af7db10b [edit] !!!!✖エラー発生中のためプル✖!!!!(図書一覧表示) 2026-09-18 17:02:26 +09:00
771d28edfe [add] トップメニューのhtmlの修正、パスワード変更のページとcontrollerを追加しました 2026-09-18 17:00:39 +09:00
h-seya
2a29f53479 Merge branch 's-tajihi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 15:18:32 +09:00
y-kumaki
4f46641774 Merge branch 's-tajihi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into y-kumaki 2026-09-18 15:17:50 +09:00
s-tajihi
15458cd2cd [edit] トップメニューから各画面への遷移を追加 2026-09-18 15:00:58 +09:00
s-tajihi
990814ee78 Merge branch 'a-kawaguchi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi 2026-09-18 14:22:06 +09:00
h-seya
d507d68e1b Merge branch 'a-kawaguchi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 14:21:46 +09:00
d841bc52e4 トップメニューから図書一覧への画面推移(formタグ使用) 2026-09-18 14:20:41 +09:00
h-seya
536a98767d Merge branch 's-tajihi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 14:19:24 +09:00
4398b1554b Merge remote-tracking branch 'origin/s-tajihi' into a-kawaguchi 2026-09-18 13:48:35 +09:00
h-seya
401542974c Merge branch 'a-kawaguchi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 13:45:20 +09:00
970f47b8b2 Merge branch 'y-kumaki' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into a-kawaguchi 2026-09-18 13:42:56 +09:00
y-kumaki
1be82da0a6 Merge branch 'a-kawaguchi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into y-kumaki 2026-09-18 13:30:39 +09:00
y-kumaki
a7112b7bc0 Merge branch 'a-kawaguchi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into y-kumaki 2026-09-18 13:11:35 +09:00
h-seya
593e58db8c Merge branch 'y-watanabe' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 13:03:53 +09:00
h-seya
a6d075a686 Merge branch 'y-kumaki' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 13:03:48 +09:00
h-seya
5bf0e41745 Merge branch 's-tajihi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into h-seya 2026-09-18 13:03:44 +09:00
y-kumaki
d098a7bf9e Merge branch 'master' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into y-kumaki 2026-09-18 13:00:50 +09:00
42 changed files with 1417 additions and 285 deletions

View File

@@ -0,0 +1,13 @@
package com.example.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class ApprovalReceive {
@GetMapping("/approvalReceive")
public String approvalReceive() {
return "approvalReceive";
}
}

View File

@@ -1,14 +1,28 @@
package com.example.demo.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import com.example.demo.entity.Book;
import com.example.demo.service.BookServiceImpl;
@Controller
public class BookController {
@Autowired
private BookServiceImpl bookService;
@GetMapping("/book")
public String book() {
public String book(Model model) {
List<Book> aaa = bookService.findAll();
// DBから取得したデータをHTMLで扱えるようにする
model.addAttribute("book",bookService.findAll());
return "book";
}
}

View File

@@ -1,6 +1,14 @@
package com.example.demo.controller;
//@Controller
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class BookInsertConfirmController {
@GetMapping("/bookInsertConfirm")
public String bookInsertConfirm() {
return "bookInsertConfirm";
}
}

View File

@@ -1,52 +1,13 @@
package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import com.example.demo.entity.BookInsert;
import com.example.demo.repository.BookCategoryRepository;
import com.example.demo.service.BookInsertService;
@Controller
public class BookInsertController {
@Autowired
private BookInsertService bookInsertService;
@Autowired
private BookCategoryRepository categoryRepository;
@GetMapping("/bookInsert")
public String bookInsert(Model model) {
model.addAttribute("categoryList",categoryRepository.findAll());
model.addAttribute("bookInsert",new BookInsert());
@GetMapping("bookInsert")
public String bookInsert() {
return "bookInsert";
}
// 初期表示: 空のformを渡す(th:fieldの初期値が空になる)
// 確認画面から戻る: POSTされた入力中の値がformに入ったまま入力画面へ
@PostMapping("/bookInsertConfirm")
public String bookInsertConfirm(BookInsert bookInsert,Model model) {
model.addAttribute("bookInsert",bookInsert);
return "bookInsertConfirm";
}
@PostMapping("/bookInsert")
public String bookInsertBack(BookInsert bookInsert,Model model) {
model.addAttribute("categoryList",categoryRepository.findAll());
model.addAttribute("bookInsert",bookInsert);
return "bookInsert";
}
}
}

View File

@@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.PostMapping;
@Controller
public class BookLendController {
@PostMapping("/bookLend")
public String welcome() {
public String bookLend() {
return "bookLend";
}

View File

@@ -0,0 +1,13 @@
package com.example.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
@Controller
public class BookUpdateConfirmController {
@PostMapping("/updateconfirm")
public String updateConfirm() {
return "updateconfirm";
}
}

View File

@@ -0,0 +1,19 @@
package com.example.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
@Controller
public class BookUpdateController {
@PostMapping("/update")
public String update() {
return "update";
}
@PostMapping("/bookUpdate")
public String bookUpdate() {
return "book";
}
}

View File

@@ -0,0 +1,36 @@
package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.example.demo.service.BookLendService;
@Controller
public class LendListController {
@Autowired
private BookLendService lendlistService;
@GetMapping("/lendList")
public String list(Model model) {
// findAllを使って、DBから一覧を取得 でバックで取得したのを確認
model.addAttribute("list",lendlistService.findAll());
return "lendList";
}
@GetMapping("/return-book")
public String retun(@RequestParam(name="lendId") int returnBook){
lendlistService.regist(returnBook);
return "bookLendResult";
}
}

View File

@@ -1,22 +1,77 @@
package com.example.demo.controller;
import jakarta.servlet.http.HttpSession;
import jakarta.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import com.example.demo.entity.AccountEntity;
import com.example.demo.form.LoginForm;
import com.example.demo.service.LoginService;
import lombok.RequiredArgsConstructor;
@Controller
@RequiredArgsConstructor
public class LoginController {
@GetMapping("/login")
public String showLogin() {
return "login";
private final LoginService loginService;
// Boot起動直後にログイン画面に移動する用のメソッド
@GetMapping("/")
public String index(HttpSession session) {
if (session.getAttribute("loginEmployee") != null) {
return "redirect:/topmenu";
}
return "redirect:/login";
}
@PostMapping("/doLogin")
public String doLogin() {
@GetMapping("/login")
public String loginForm(Model model, HttpSession session) {
if (session.getAttribute("loginEmployee") != null) {
return "redirect:/topmenu";
}
model.addAttribute("loginForm", new LoginForm());
return "login";
}
// 実際のログイン処理
@PostMapping("/login")
public String doLogin(
@Valid @ModelAttribute LoginForm loginForm,
BindingResult bindingResult,
Model model,
HttpSession session) {
if (bindingResult.hasErrors()) {
return "login";
}
AccountEntity accountEntity = loginService.login(loginForm);
if (accountEntity == null) {
model.addAttribute("loginError",
"ログインIDまたはパスワードが正しくありません");
return "login";
}
session.setAttribute("loginEmployee", accountEntity);
return "redirect:/topmenu";
}
// ログアウト処理
@GetMapping("/logout")
public String logout(HttpSession session) {
session.invalidate();
return "redirect:/login";
}
// 各画面からトップメニューへの遷移用
@GetMapping("/topmenu")
public String showTopMenu() {
return "topmenu";

View File

@@ -0,0 +1,14 @@
package com.example.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class PasswordChangeController {
@GetMapping("/passwordChange")
public String showPasswordChange() {
return "passwordChange";
}
}

View File

@@ -0,0 +1,40 @@
package com.example.demo.entity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/*
* accountテーブル用のEntityクラス
* ログイン時やセッションでの管理者判別に使う
*/
@Entity
@Table(name = "account")
@Getter
@Setter
@NoArgsConstructor
public class AccountEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="login_info_id")
private Integer loginInfoId;
@Column(name="employee_id")
private Integer employeeId;
@Column(name="password_hash")
private String passwordHash;
@Column(name="admin_flag")
private int adminFlag;
}

View File

@@ -0,0 +1,95 @@
package com.example.demo.entity;
import java.sql.Date;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.Data;
@Entity // このクラスがDBのテーブルに対応することを表す
@Data
@Table(name = "book")
public class Book {
//図書ID
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "book_id", nullable = false)
private int bookId;
// 図書管理ID(BK-1など)
@Column(name = "book_manage_id", nullable = true, unique = true)
private String bookManageId;
// タイトル
@Column(name = "title", nullable = false)
private String title;
//ISBN
@Column(name = "isbn", nullable = false)
private String isbn;
// 著者名
@Column(name = "author", nullable = false)
private String author;
// 出版社
@Column(name = "publisher", nullable = true)
private String publisher;
// 出版日
@Column(name = "publication_date", nullable = true)
private Date publicationDate;
// サブカテゴリーID!!
@ManyToOne
@JoinColumn(name = "book_subcategory_id", nullable = false)
private BookSubcategory bookSubcategory;
// 保管場所
@ManyToOne
@JoinColumn(name = "location_id", nullable = false)
private StorageLocation storageLocation;
// 本の状態
@Column(name = "condition_s", nullable = false)
private int condition;
// 登録日
@Column(name = "created_at", nullable = false)
private Date createdAt;
// 更新日
@Column(name = "updated_at", nullable = false)
private Date updatedAt;
//削除フラグ
@Column(name = "is_deleted", nullable = false)
private Integer isDeleted;
// 寄贈者社員ID??
@ManyToOne
@JoinColumn(name = "donor_id", nullable = true)
private Employee employee;
//備考
@Column(name = "description", nullable = true)
private String description;
//申請承認フラグ
@Column(name = "book_approval", nullable = false)
private Integer bookApproval;
@OneToOne(mappedBy = "book")
private BookLend bookLends;
}

View File

@@ -1,8 +1,12 @@
package com.example.demo.entity;
import java.util.ArrayList;
import java.util.List;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import lombok.Data;
@@ -12,11 +16,13 @@ import lombok.Data;
@Table(name="book_category")
public class BookCategory {
@Id
@Column(name = "book_category_id")
private Integer bookCategoryId;
@Column(name = "book_category_name")
private String bookCategoryName;
@OneToMany(mappedBy = "bookCategory")
private List<BookSubcategory> BookSubcategories = new ArrayList<>();
}

View File

@@ -1,32 +0,0 @@
package com.example.demo.entity;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Data;
@Entity // このクラスがDBのテーブルに対応することを表す
@Data
public class BookInsert {
@Id // 主キー
@GeneratedValue(strategy = GenerationType.IDENTITY) // 自動採番
private Long Id;
private String bookId;
private String title;
private Integer isbn;
private String author;
private String category;
private String subcategory;
private Integer publisher;
private Integer publicationDate;
private String location;
private String condition;
private String donor;
private String discription;
}

View File

@@ -0,0 +1,47 @@
package com.example.demo.entity;
import java.sql.Date;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.Data;
@Entity // このクラスがDBのテーブルに対応することを表す
@Data
@Table(name = "book_lend")
public class BookLend {
//貸出ID
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "lend_Id", nullable = false)
private int lendId;
// 図書管理ID(BK-1など)
@OneToOne
@JoinColumn(name = "book_manage_id", referencedColumnName = "book_manage_id",nullable = false)
private Book book;
@ManyToOne
@JoinColumn(name = "employee_id", nullable = false)
private Employee employeeBooklend;
// 貸出日
@Column(name = "book_lend_date", nullable = false)
private Date bookLendDate;
// 返却日
@Column(name = "book_return_date", nullable = false)
private Date bookReturnDate;
// 貸出状態
@Column(name = "book_status", nullable = false)
private Integer bookStatus;
}

View File

@@ -0,0 +1,34 @@
package com.example.demo.entity;
import java.util.ArrayList;
import java.util.List;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import lombok.Data;
@Entity
@Data
@Table(name = "book_subcategory")
public class BookSubcategory {
@Id
@Column(name = "book_subcategory_id")
private Integer bookSubcategoryId;
@ManyToOne
@JoinColumn(name = "book_category_id", nullable = false)
private BookCategory bookCategory;
@Column(name = "book_subcategory_name")
private String bookSubcategoryName;
@OneToMany(mappedBy = "bookSubcategory")
private List<Book> Books = new ArrayList<>();
}

View File

@@ -0,0 +1,40 @@
package com.example.demo.entity;
import java.util.ArrayList;
import java.util.List;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import lombok.Data;
@Entity // このクラスがDBのテーブルに対応することを表す
@Data
@Table(name = "employee")
public class Employee {
//社員ID
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "employee_Id", nullable = false)
private int employeeId;
// 社員名
@Column(name = "employee_name", nullable = false)
private String employeeName;
//部署ID
@Column(name = "department_id", nullable = false)
private Integer departmentId;
@OneToMany(mappedBy = "employee")
private List<Book> employees = new ArrayList<>();
@OneToMany(mappedBy = "employeeBooklend")
private List<BookLend> employeesBooklend = new ArrayList<>();
}

View File

@@ -0,0 +1,34 @@
package com.example.demo.entity;
import java.util.ArrayList;
import java.util.List;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import lombok.Data;
@Entity // このクラスがDBのテーブルに対応することを表す
@Data
@Table(name = "storage_location")
public class StorageLocation {
//保管場所ID
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "location_id", nullable = false)
private int locationId;
// 保管場所名
@Column(name = "location_name", nullable = false)
private String locationName;
@OneToMany(mappedBy = "storageLocation")
private List<Book> Location = new ArrayList<>();
}

View File

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

View File

@@ -0,0 +1,17 @@
package com.example.demo.form;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
@Data
public class LoginForm {
@NotNull(message = "社員IDを入力してください")
private Integer employeeId;
@NotBlank(message = "パスワードを入力してください")
private String passwordHash;
}

View File

@@ -0,0 +1,11 @@
package com.example.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.entity.AccountEntity;
public interface AccountRepository extends JpaRepository<AccountEntity,Integer>{
AccountEntity findByEmployeeId (Integer employeeId);
}

View File

@@ -1,11 +0,0 @@
package com.example.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.entity.BookInsert;
public interface BookInsertRepository extends JpaRepository<BookInsert,Integer> {
}

View File

@@ -0,0 +1,15 @@
package com.example.demo.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.demo.entity.BookLend;
@Repository
public interface BookLendRepository extends JpaRepository<BookLend, Integer> {
List<BookLend> findBybookStatus(Integer bookStatus);
}

View File

@@ -0,0 +1,10 @@
package com.example.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.demo.entity.Book;
public interface BookRepository extends JpaRepository<Book, Integer>{
}

View File

@@ -1,11 +0,0 @@
package com.example.demo.service;
import java.util.List;
import com.example.demo.entity.BookInsert;
public interface BookInsertService {
String regist(BookInsert book);
List<BookInsert> findAll();
}

View File

@@ -1,33 +0,0 @@
package com.example.demo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.entity.BookInsert;
import com.example.demo.repository.BookInsertRepository;
@Service
public class BookInsertServiceImpl implements BookInsertService {
@Autowired
private BookInsertRepository bookInsertRepository;
@Override
public String regist(BookInsert book) {
// DTO → エンティティへ詰め替えて保存
bookInsertRepository.save(book);
book.setBookId("bk"+book.getId());
bookInsertRepository.save(book); // 保存
return "登録が完了しました";
}
@Override
public List<BookInsert> findAll() {
return bookInsertRepository.findAll(); // 全件取得
}
}
// ※BookService インタフェースにも List<Review> findAll(); を追加すること

View File

@@ -0,0 +1,34 @@
package com.example.demo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.example.demo.entity.BookLend;
import com.example.demo.repository.BookLendRepository;
@Service
public class BookLendService {
@Autowired
private BookLendRepository bookLendRepository;
public List<BookLend> findAll() {
return bookLendRepository.findBybookStatus(1);
}
@Transactional
public void regist(Integer lendId) {
BookLend booklend = bookLendRepository.findById(lendId).orElse(null);
booklend.setBookStatus(0);
bookLendRepository.save(booklend);
}
}

View File

@@ -0,0 +1,11 @@
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

@@ -0,0 +1,35 @@
package com.example.demo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.entity.Book;
import com.example.demo.repository.BookRepository;
@Service
public class BookServiceImpl{
@Autowired
private BookRepository bookRepository;
// @Override
// public String booklist(com.example.demo.entity.Book book) {
// Book booklist = new Book();
// booklist.setBookId(book.getBookId());
//
// return null;
// }
public List<Book> findAll() {
return bookRepository.findAll();
}
}

View File

@@ -0,0 +1,31 @@
package com.example.demo.service;
import org.springframework.stereotype.Service;
import com.example.demo.entity.AccountEntity;
import com.example.demo.form.LoginForm;
import com.example.demo.repository.AccountRepository;
import lombok.RequiredArgsConstructor;
@Service
@RequiredArgsConstructor
public class LoginService {
private final AccountRepository accountRepository;
public AccountEntity login(LoginForm form) {
AccountEntity accountEntity =
accountRepository.findByEmployeeId(form.getEmployeeId());
if(accountEntity == null) {
return null;
}
if(!accountEntity.getPasswordHash().equals(form.getPasswordHash()))
return null;
return accountEntity;
}
}

View File

@@ -0,0 +1,62 @@
function togglePassword(id) {
const input = document.getElementById(id);
if (input === null) {
return;
}
if (input.type === "password") {
input.type = "text";
} else {
input.type = "password";
}
}
function clearForm() {
const form = document.getElementById("pwForm");
if (form === null) {
return;
}
form.reset();
}
function showCompletedPopup() {
const completedDialog = document.getElementById("completedDialog");
if (completedDialog === null) {
return;
}
completedDialog.showModal();
}
function goTopMenu() {
const topMenuUrl = document.body.dataset.topmenuUrl;
if (topMenuUrl) {
window.location.href = topMenuUrl;
return;
}
window.location.href = "/topmenu";
}
function goLogin(){
const loginUrl = document.body.dataset.loginUrl;
if (loginUrl){
window.location.href = loginUrl;
return;
}
window.location.href="/login"
}

View File

@@ -1,10 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>寄贈申請 受信BOX</title>
</head>
<body>
<h1>寄贈申請 受信BOX</h1>
<!-- action先要修正 -->
<form action="/approvalReceive" method="GET">
<input type="submit" value="承認" class="btn">
</form>
<!-- action先要修正 -->
<form action="/approvalReceive" method="GET">
<input type="submit" value="却下" class="btn">
</form>
<!-- 新規登録画面へ遷移 -->
<form action="/bookInsert" method="GET">
<input type="submit" value="登録" class="btn">
</form>
<!-- action先要修正 -->
<form action="/approvalReceive" method="GET">
<input type="submit" value="戻る" class="btn">
</form>
</body>
</html>

View File

@@ -1,18 +1,100 @@
<!DOCTYPE html>
<html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>社内図書一覧</title>
</head>
<body>
<form method="post" action="bookLend">
<div class="container">
<h1>社内図書一覧</h1>
<div class="float-end">
</div>
<form method="get" action="bookLend">
<table class="table table-striped">
<thead>
<tr>
<th>図書ID</th>
<th>ISBN</th>
<th>タイトル</th>
<th>著者名</th>
<th>出版社</th>
<th>出版日</th>
<th>カテゴリー名</th>
<th>サブカテゴリー名</th>
<th>保管場所</th>
<th>本の状態</th>
<th>登録日時</th>
<th>更新日時</th>
<th>寄贈者</th>
<th>貸出状態??</th>
<th>操作??</th>
</tr>
</thead>
<tbody>
<tr th:each="book : ${book}">
<td th:text="*{book.bookManageId}"></td>
<td th:text="*{book.isbn}"></td>
<td th:text="*{book.title}"></td>
<td th:text="*{book.author}"></td>
<td th:text="*{book.publisher}"></td>
<td th:text="*{book.publicationDate}"></td>
<td th:text="*{book.bookSubcategory.bookCategory.bookCategoryName}"></td>
<td th:text="*{book.bookSubcategory.bookSubcategoryName}"></td>
<td th:text="*{book.storageLocation.locationName}"></td>
<td th:text="*{book.condition}"></td>
<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>
</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>
<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>
</html>

View File

@@ -8,74 +8,8 @@
<body>
<h1>新規図書登録入力</h1>
<br>
<br><br>
<form action="/bookInsertConfirm" method="POST">
<label for="bookId">図書管理ID</label><br>
<input type="text" id="bookId" name="bookId" placeholder="図書管理Idを入力" th:value="${bookInsert.bookId}" required>
<br><br>
<label for="title">タイトル</label><br>
<input type="text" id="title" name="title" placeholder="タイトルを入力" th:value="${bookInsert.title}" required>
<br><br>
<label for="isbn">ISBN</label><br>
<input type="text" id="isbn" name="isbn" th:value="${bookInsert.isbn}" required>
<br><br>
<label for="title">著者名</label><br>
<input type="text" id="author" name="author" placeholder="著者名を入力" th:value="${bookInsert.author}" required>
<br><br>
<label for="category">カテゴリ</label><br>
<input type="text" id="category" name="category" placeholder="カテゴリを選択" th:value="${bookInsert.category}" required>
<br><br>
<label for="subcategory">サブカテゴリ</label><br>
<input type="text" id="subcategory" name="subcategory" placeholder="サブカテゴリを選択" th:value="${bookInsert.subcategory}" required>
<br><br>
<label for="publisher">主パン者</label><br>
<input type="text" id="publisher" name="publisher" th:value="${bookInsert.publisher}">
<br><br>
<label for="publicationDate">出版日</label><br>
<input type="date" id="publicationDate" name="publicationDate" th:value="${bookInsert.publicationDate}">
<br><br>
<label for="location">保管場所</label><br>
<select id="location" name="location" required >
<option value="undecided">未確定</option>
<option value="area">開発エリア書棚</option>
<option value="rack">会議室前ラック</option>
</select>
<br><br>
<label for="condition">図書状態</label><br>
<select id="condition" name="condition" required th:value="${bookInsert.condition}">
<option value="new">新品同様</option>
<option value="good">良好</option>
<option value="use">使用感あり</option>
<option value="pain">傷みあり</option>
</select>
<br><br>
<label for="donor">寄贈者社員ID</label><br>
<input type="text" id="donor" name="donor" th:value="${bookInsert.donor}">
<br><br>
<label for="discription">備考</label><br>
<input type="text" id="discription" name="discription" th:value="${bookInsert.discription}">
<br><br>
</label>
<form action="/bookInsertConfirm" method="GET">
<input type="submit" value="確認画面へ" class="btn">
</body>
</html>

View File

@@ -9,23 +9,9 @@
<body>
<h1>登録内容確認</h1>
<!-- もどる: 入力中の値を持って入力画面へ -->
<form method="post" th:action="@{/bookInsert}" >
<input type="hidden" name="bookId" th:value="${bookInsert.bookId}">
<input type="hidden" name="title" th:value="${bookInsert.title}">
<input type="hidden" name="isbn" th:value="${bookInsert.isbn}">
<input type="hidden" name="author" th:value="${bookInsert.author}">
<input type="hidden" name="category" th:value="${bookInsert.category}">
<input type="hidden" name="subcategory" th:value="${bookInsert.subcategory}">
<input type="hidden" name="publisher" th:value="${bookInsert.publisher}">
<input type="hidden" name="publicationDate" th:value="${bookInsert.publicationDate}">
<input type="hidden" name="location" th:value="${bookInsert.location}">
<input type="hidden" name="condition" th:value="${bookInsert.condition}">
<input type="hidden" name="donor" th:value="${bookInsert.donor}">
<input type="hidden" name="discription" th:value="${bookInsert.discription}">
<button type="submit">もどる</button>
</form>
<!-- 戻る -->
<form action="/bookInsert" method="GET">
<input type="submit" value="戻る" class="btn">
</form>
<!-- 完了 -->
<form action="/book" method="GET">
@@ -67,7 +53,6 @@
</form>
</div>
</div>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>貸出中図書、返却処理結果画面</title>
<link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<h1>返却処理が完了しました。</h1>
<td>
<form th:action="@{/lendList}" method="get">
<button type="submit" th:value="貸出">貸出中図書一覧に戻る</button>
</td>
</body>
</html>

View File

@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>貸出中図書一覧</title>
<link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<h1>貸出中図書一覧</h1>
<table>
<thead>
<tr>
<th>社員ID</th>
<th>社員名</th>
<th>管理ID</th>
<th>タイトル</th>
<th>返却予定日</th>
</tr>
</thead>
<tbody>
<tr th:each="booklist : ${list}">
<td th:text="*{booklist.employeeBooklend.employeeId}"></td>
<td th:text="*{booklist.employeeBooklend.employeeName}"></td>
<td th:text="*{booklist.book.bookManageId}"></td>
<td th:text="*{booklist.book.title}"></td>
<td th:text="*{booklist.bookReturnDate}"></td>
<td>
<form th:action="@{/return-book}" method="get">
<button type="submit" name="lendId" th:value="${booklist.lendId}"
onclick="return MoveCheck();">返却
</button>
</form>
</td>
</tr>
</tbody>
</table>
<script>
function MoveCheck() {
return window.confirm("返却処理を実行します。よろしいですか?");
}
</script>
</body>
</html>

View File

@@ -1,29 +1,35 @@
<!DOCTYPE html>
<html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>ログイン</title>
</head>
<body>
<h1>ログイン</h1>
<form action="doLogin"
method="post"
th:object="${loginInfoForm}">
<div class="msgBox error" th:if="${messageError} != null">
<span class="error" th:text="${messageError.message}"></span>
<p class="message message-error" th:if="${loginError}" th:text="${loginError}">
</p>
<form th:action="@{/login}" th:object="${loginForm}" method="post">
<div class="form-group">
<label for="employeeId">社員ID</label>
<input id="employeeId" type="text" th:field="*{employeeId}">
<p class="field-error" th:errors="*{employeeId}"></p>
</div>
<table>
<tr>
<td class="btnArea" colspan="2">
<input type="submit" value="ログイン"/>
<button onclick="clearInput()">リセット</button>
</td>
</tr>
</table>
<div class="form-group">
<label for="passwordHash">パスワード</label>
<input id="passwordHash" type="password" th:field="*{passwordHash}">
<p class="field-error" th:errors="*{passwordHash}"></p>
</div>
<input type="submit" value="ログイン">
<input type="reset" value="リセット">
</form>
</body>
</html>

View File

@@ -0,0 +1,377 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="ja">
<head>
<meta charset="UTF-8">
<title>ShareBooks|パスワード変更</title>
</head>
<body th:data-topmenu-url="@{/topmenu}">
<!-- ヘッダー -->
<div class="header-bar">
<div class="header-left">
ShareBooks
</div>
<div class="header-right">
<span class="bell">
🔔
<span class="badge">3</span>
</span>
<span class="user">
テストユーザー(一般)
</span>
<button type="button" class="logout">
ログアウト
</button>
</div>
</div>
<div class="layout">
<!-- サイドバー -->
<div class="sidebar">
<div class="section-label">
共通画面
</div>
<a class="side-menu" th:href="@{/topmenu}">
トップメニュー
</a>
<div class="active">
パスワード再設定
</div>
</div>
<!-- メイン -->
<div class="main-area">
<!-- パンくずリスト -->
<div class="breadcrumb">
<a th:href="@{/topmenu}">
トップメニュー
</a>
&gt; パスワード再設定
</div>
<h1 class="page-title">
パスワード再設定
</h1>
<p class="page-desc">
現在のパスワードと新しいパスワードを入力し、
「確定」ボタンを押してください。
</p>
<p class="required-note">
(※)は必須項目です。
</p>
<div class="content-columns">
<!-- 左カラム -->
<div class="left-column">
<div class="form-card">
<h2>
パスワード再設定入力
</h2>
<!--
簡易実装のため、フォーム送信は行いません。
-->
<form id="pwForm" onsubmit="return false;">
<!-- 現在のパスワード -->
<div class="form-group">
<label for="currentPassword">
現在のパスワード
<span class="req">(※)</span>
</label>
<div class="input-with-icon">
<input
type="password"
id="currentPassword"
name="currentPassword"
autocomplete="current-password"
placeholder="現在のパスワードを入力してください">
<button
type="button"
class="toggle-password"
aria-label="現在のパスワードの表示を切り替える"
onclick="togglePassword('currentPassword')">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path
d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z">
</path>
<circle
cx="12"
cy="12"
r="3">
</circle>
</svg>
</button>
</div>
</div>
<!-- 新しいパスワード -->
<div class="form-group">
<label for="newPassword">
新しいパスワード
<span class="req">(※)</span>
</label>
<div class="input-with-icon">
<input
type="password"
id="newPassword"
name="newPassword"
autocomplete="new-password"
placeholder="新しいパスワードを入力してください">
<button
type="button"
class="toggle-password"
aria-label="新しいパスワードの表示を切り替える"
onclick="togglePassword('newPassword')">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path
d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z">
</path>
<circle
cx="12"
cy="12"
r="3">
</circle>
</svg>
</button>
</div>
<p class="field-hint">
※ 半角英数字・記号を含む8文字以上16文字以下で入力してください。
</p>
</div>
<!-- 確認用パスワード -->
<div class="form-group">
<label for="confirmPassword">
新しいパスワードの確認
<span class="req">(※)</span>
</label>
<div class="input-with-icon">
<input
type="password"
id="confirmPassword"
name="confirmPassword"
autocomplete="new-password"
placeholder="新しいパスワードをもう一度入力してください">
<button
type="button"
class="toggle-password"
aria-label="確認用パスワードの表示を切り替える"
onclick="togglePassword('confirmPassword')">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path
d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z">
</path>
<circle
cx="12"
cy="12"
r="3">
</circle>
</svg>
</button>
</div>
<p class="field-hint">
※ 確認のため、もう一度新しいパスワードを入力してください。
</p>
</div>
</form>
</div>
<!-- 注意事項 -->
<div class="notice-box">
<div class="notice-title">
注意事項
</div>
</div>
<!-- 操作ボタン -->
<div class="button-row">
<button
type="button"
class="btn btn-secondary"
onclick="goTopMenu()">
トップメニューへ戻る
</button>
<div class="btn-group-right">
<button
type="button"
class="btn btn-secondary"
onclick="clearForm()">
クリア
</button>
<!-- ダイアログを表示 -->
<button
type="button"
class="btn btn-primary"
onclick="showCompletedPopup()">
確定
</button>
</div>
</div>
</div>
<!-- 右カラム -->
<div class="right-column">
<div class="constraint-panel">
<div class="panel-title">
パスワードの制約
</div>
<div class="group-label">
使用可能文字
</div>
<div class="chars-value">
半角英数字・記号
</div>
<hr>
<div class="group-label">
制約
</div>
<ul class="constraint-list">
<li>✓ 8文字以上16文字以下</li>
<li>✓ 1つ以上の小文字を使用</li>
<li>✓ 1つ以上の大文字を使用</li>
<li>✓ 1つ以上の数字を使用</li>
<li>✓ 1つ以上の記号を使用</li>
</ul>
<div class="example-box">
<div class="example-label">
設定例
</div>
<div class="example-value">
Abcdef12!
</div>
<div class="example-note">
(9文字、英字大小・数字・記号を含む)
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© 2026 ShareBooks
</div>
<dialog id="completedDialog">
<h2>
変更完了
</h2>
<p>
パスワードの変更が完了しました。
</p>
<button
type="button"
onclick="goLogin()">
完了
</button>
</dialog>
<script th:src="@{/js/passwordChange.js}"></script>
</body>
</html>

View File

@@ -1,16 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>トップメニュー</title>
</head>
<body>
<div class="header-bar">
<div class="header-left">
ShareBooks
</div>
<div class="header-right">
<span class="user">
テストユーザー(一般)
</span>
<a class="button-link" th:href="@{/logout}">
ログアウト
</a>
</div>
</div>
<h1>
メインメニュー
</h1>
<!-- ===== 共通:社内図書一覧 ===== -->
<a class="card" href="${pageContext.request.contextPath}/BookServlet">
<a class="card" href="/book">
<h3>社内図書一覧</h3>
@@ -23,7 +49,7 @@
<!-- ===== 共通:寄贈申請 ===== -->
<a class="card" href="${pageContext.request.contextPath}/employee">
<a class="card" href="/bookApproval">
<h3>寄贈申請</h3>
@@ -48,7 +74,7 @@
<hr>
<a class="card" href="${pageContext.request.contextPath}/lendList">
<a class="card" href="/lendList">
<h3>貸出中図書一覧</h3>
@@ -59,7 +85,7 @@
<hr>
<a class="card" href="${pageContext.request.contextPath}/bookApproval-list">
<a class="card" href="/approvalReceive">
<h3>寄贈申請受信BOX</h3>
@@ -68,5 +94,16 @@
</p>
</a>
<hr>
<a class="card" href="/passwordChange">
<h3>パスワード変更</h3>
<p>
初期パスワードを<br> 変更します。
</p>
</a>
</body>
</html>

View File

@@ -5,6 +5,13 @@
<title>図書情報更新入力</title>
</head>
<body>
更新入力画面
<form method="post" action="updateconfirm">
<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>
</html>

View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>更新内容確認</title>
</head>
<body>
更新内容確認画面
<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>
<form method="post" action="bookUpdate">
<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>
</html>