Compare commits
8 Commits
s-ohasi
...
0af33fb0c0
| Author | SHA1 | Date | |
|---|---|---|---|
| 0af33fb0c0 | |||
| c730538e56 | |||
| 4fb0f51dc4 | |||
| c5142cdfdf | |||
| 53485523b0 | |||
| 6b0fcad592 | |||
| 077b53243a | |||
| ef84f8ff26 |
@@ -0,0 +1,35 @@
|
|||||||
|
package com.example.demo.controller;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class LendingListController {
|
||||||
|
|
||||||
|
// @GetMapping("/lendingList")
|
||||||
|
// public String show(Model model) {
|
||||||
|
// List<X> x = xservice.getX();
|
||||||
|
// model.addAttribute("Y", x);
|
||||||
|
// return "Y";
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// HttpSession session;
|
||||||
|
//
|
||||||
|
// @Autowired
|
||||||
|
// public SelectListController(HttpSession session) {
|
||||||
|
// this.session=session;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// @RequestMapping("/lendingList")
|
||||||
|
// public String lendList() {
|
||||||
|
// return "lendingList";
|
||||||
|
// }
|
||||||
|
|
||||||
|
// @RequestMapping(value = lendingList, method = RequestMethod.POST)
|
||||||
|
// public String select( , Model model) {
|
||||||
|
// model.addAttribute(
|
||||||
|
// );
|
||||||
|
// return lendingList;
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
}
|
||||||
@@ -138,4 +138,4 @@ public class EmployeeEntity {
|
|||||||
// getIdUpdate(),
|
// getIdUpdate(),
|
||||||
// getDateUpdate());
|
// getDateUpdate());
|
||||||
//}
|
//}
|
||||||
//}
|
//}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.example.demo.service;
|
||||||
|
|
||||||
|
import javax.transaction.Transactional;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.example.demo.entity.EmployeeEntity;
|
||||||
|
import com.example.demo.repository.Book_CollectionRepository;
|
||||||
|
import com.example.demo.repository.Borrow_BooksRepository;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Transactional
|
||||||
|
public class LendingListService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private Book_CollectionRepository collection;
|
||||||
|
@Autowired
|
||||||
|
private Borrow_BooksRepository borrow;
|
||||||
|
@Autowired
|
||||||
|
private EmployeeEntity employee;
|
||||||
|
|
||||||
|
public List<table> getcollectionWithborrow(){
|
||||||
|
return collection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
5
team1/src/main/java/com/example/demo/service/S.java
Normal file
5
team1/src/main/java/com/example/demo/service/S.java
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package com.example.demo.service;
|
||||||
|
|
||||||
|
public class S {
|
||||||
|
|
||||||
|
}
|
||||||
44
team1/src/main/resources/templates/lendingList.html
Normal file
44
team1/src/main/resources/templates/lendingList.html
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||||
|
<title>貸出中書籍一覧</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>
|
||||||
|
<div class="rightSection">
|
||||||
|
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||||
|
</div>
|
||||||
|
<a href="menu">メニューに戻る</a>
|
||||||
|
<h1><span>検索結果</span></h1>
|
||||||
|
</h1>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 100px;">申請ID</th>
|
||||||
|
<th style="width: 100px;">申請者名</th>
|
||||||
|
<th style="width: 100px;">書籍名</th>
|
||||||
|
<th style="width: 100px;">申請日</th>
|
||||||
|
<th style="width: 100px;">貸出日</th>
|
||||||
|
<th style="width: 100px;">返却予定日</th>
|
||||||
|
<th style="width: 100px;">操作</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr th:each="">
|
||||||
|
<td th:text="${.idRequest}"></td>
|
||||||
|
<td th:text="${.}"></td>
|
||||||
|
<td th:text="${.}"></td>
|
||||||
|
<td th:text="${.dateRequest}"></td>
|
||||||
|
<td th:text="${.dateBorrow}"></td>
|
||||||
|
<td th:text="${.dateScheduledReturn}"></td>
|
||||||
|
<td>
|
||||||
|
<form action="" method="post" style="display: inline;">
|
||||||
|
<input name="" th:value="${}" type="hidden">
|
||||||
|
<input type="submit" value="返却">
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tbody>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user