12 Commits

Author SHA1 Message Date
kkazuya
fbec462f65 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into k-kobayashi 2026-09-17 16:35:42 +09:00
kkazuya
8b9765852b Merge branch 's-morimto' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into k-kobayashi 2026-09-17 16:31:50 +09:00
s-choi
830d8a672f Merge remote-tracking branch 'origin/s-morimto' into s-choi 2026-09-17 16:31:50 +09:00
kkazuya
ae53f3e733 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into k-kobayashi 2026-09-17 16:31:41 +09:00
d87bdfbe91 [EDIT]controllerの修正 2026-09-17 16:28:23 +09:00
s-choi
22191e63ef Merge remote-tracking branch 'origin/s-morimto' into s-choi 2026-09-17 16:27:57 +09:00
kkazuya
e261065a62 Merge branch 's-morimto' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into k-kobayashi 2026-09-17 16:26:31 +09:00
49ad550839 [EDIT]メールアドレスの追加 2026-09-17 16:25:46 +09:00
s-choi
bd2cad7c34 Merge remote-tracking branch 'origin/n-kawahito' into s-choi
# Conflicts:
#	src/main/java/com/example/demo/app/infra/repository/AllocationRepository.java
2026-09-17 16:18:45 +09:00
s-choi
db7fc1d16d Merge remote-tracking branch 'origin/s-morimto' into s-choi
# Conflicts:
#	src/main/java/com/example/demo/app/infra/repository/AllocationRepository.java
2026-09-17 16:17:50 +09:00
23232954f1 Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into n-kawahito 2026-09-17 16:08:12 +09:00
4e3477af77 [EDIT]分析値の+-表記と色分けについて記述しました 2026-09-17 16:07:35 +09:00
4 changed files with 41 additions and 7 deletions

View File

@@ -16,5 +16,6 @@ public interface UserRepository extends JpaRepository<UserEntity, Long> {
String mailAddress,
String password);
Optional<UserEntity> findByMailAddress(String mailAddress);
}

View File

@@ -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";
}
}

View File

@@ -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>