Compare commits
12 Commits
296bcf8d70
...
fbec462f65
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbec462f65 | ||
|
|
8b9765852b | ||
|
|
830d8a672f | ||
|
|
ae53f3e733 | ||
| d87bdfbe91 | |||
|
|
22191e63ef | ||
|
|
e261065a62 | ||
| 49ad550839 | |||
|
|
bd2cad7c34 | ||
|
|
db7fc1d16d | ||
| 23232954f1 | |||
| 4e3477af77 |
@@ -16,5 +16,6 @@ public interface UserRepository extends JpaRepository<UserEntity, Long> {
|
||||
String mailAddress,
|
||||
String password);
|
||||
|
||||
Optional<UserEntity> findByMailAddress(String mailAddress);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,4 +32,18 @@ public class UserController {
|
||||
return "user_register_confirm";
|
||||
}
|
||||
|
||||
@PostMapping("/user/register/complete")
|
||||
public String completeRegister(HttpSession session) {
|
||||
|
||||
UserForm userForm =
|
||||
(UserForm) session.getAttribute("userForm");
|
||||
|
||||
// DBへの登録処理
|
||||
|
||||
session.removeAttribute("userForm");
|
||||
|
||||
return "redirect:/login";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<table class="table text-center">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">カテゴリ別</th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col">支出</th>
|
||||
<th scope="col">前月比</th>
|
||||
</tr>
|
||||
@@ -20,8 +20,17 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">総支出</th>
|
||||
<td th:text="'¥' + ${analysisForm.currentMonthTotalAmount}">0</td>
|
||||
<td th:text="'¥' + ${analysisForm.totalDifferenceAmount}">0</td>
|
||||
<td th:text="'¥' + ${analysisForm.currentMonthTotalAmount}">
|
||||
0
|
||||
</td>
|
||||
<td th:text="${analysisForm.totalDifferenceAmount >= 0}
|
||||
? '+' + ${analysisForm.totalDifferenceAmount}
|
||||
: '-' + ${analysisForm.totalDifferenceAmount}"
|
||||
th:class="${analysisForm.totalDifferenceAmount >= 0}
|
||||
? 'color-danger;'
|
||||
: 'color-primary;'">
|
||||
0
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -44,7 +53,7 @@
|
||||
<tr th:each="category : ${analysisForm.categoryAnalysisFormList}">
|
||||
|
||||
<th scope="row"
|
||||
th;text="${category.categoryName}">
|
||||
th:text="${category.categoryName}">
|
||||
食費
|
||||
</th>
|
||||
|
||||
@@ -53,10 +62,20 @@
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<span th:text="'¥' + ${category.monthDifferenceAmount}">
|
||||
<span th:text="${category.monthDifferenceAmount >= 0}
|
||||
? '+' + ${category.monthDifferenceAmount}
|
||||
: '-' + ${category.monthDifferenceAmount}"
|
||||
th:class="${category.monthDifferenceAmount >= 0}
|
||||
? 'color-danger;'
|
||||
: 'color-primary;'">
|
||||
</span>
|
||||
<br>
|
||||
<span th:text="'¥' + ${category.courseDifferenceAmount}">
|
||||
<span th:text="${category.courseDifferenceAmount >= 0}
|
||||
? '+' + ${category.courseDifferenceAmount}
|
||||
: '-' + ${category.courseDifferenceAmount}"
|
||||
th:class="${category.courseDifferenceAmount >= 0}
|
||||
? 'color-danger;'
|
||||
: 'color-primary;'">
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user