20 Commits

Author SHA1 Message Date
7e2017a341 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-30 10:09:39 +09:00
s-choi
9d5dd5b9b2 [STYLE] 英語を日本語に変えました。 2026-09-30 10:09:04 +09:00
s-choi
378c169c1f [STYLE] 改行を整えました。 2026-09-30 09:42:00 +09:00
s-choi
e67912a259 [DELETE] 余計なファイルを削除しました。 2026-09-30 09:41:39 +09:00
26c9be6f71 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 16:09:02 +09:00
181adcd933 Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 16:08:33 +09:00
s-choi
c470cc1970 Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-choi 2026-09-29 16:08:24 +09:00
546a2927eb [FIX]目標がすぐ改行される問題を解消しました 2026-09-29 16:01:27 +09:00
2ed56f2413 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto
# Conflicts:
#	src/main/java/com/example/demo/app/presentation/controller/TransactionController.java
2026-09-29 15:30:27 +09:00
baab2a822d Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 15:14:27 +09:00
25986b455e Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 14:48:11 +09:00
c7a33c997c Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 14:38:02 +09:00
3818da7b4e Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 14:37:39 +09:00
f37dd792a0 Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 13:36:21 +09:00
109b8125d6 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 11:15:57 +09:00
626c4d6721 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 11:00:49 +09:00
e43958a1fb Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto 2026-09-29 10:55:27 +09:00
57a76ae044 no message 2026-09-29 10:24:55 +09:00
4880a4285e Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimoto
# Conflicts:
#	src/main/java/com/example/demo/aop/handler/GlobalExceptionHandler.java
2026-09-29 10:24:41 +09:00
03b1b7d982 [EDIT]バグ修正 2026-09-29 10:22:58 +09:00
9 changed files with 34 additions and 119 deletions

View File

@@ -49,7 +49,7 @@ public class GlobalExceptionHandler {
LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE_ILLEGAL_TRANSITION, e); LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE_ILLEGAL_TRANSITION, e);
System.out.println("session invalidated"); System.out.println("session invalidated method not supported exception");
session.invalidate(); session.invalidate();
return TransitionTargetPageNameKeyword.ERROR_HTML; return TransitionTargetPageNameKeyword.ERROR_HTML;

View File

@@ -430,6 +430,7 @@ public class TransactionController {
UserForm userForm = UserForm.convertFrom(userService.findByUserId(loginUser.getUserId())); UserForm userForm = UserForm.convertFrom(userService.findByUserId(loginUser.getUserId()));
List<GoalForm> resultList = goalForm.stream().filter(goal -> goal.getGoalComplete() == 0 && goal.getDeadline().isAfter(today) ) List<GoalForm> resultList = goalForm.stream().filter(goal -> goal.getGoalComplete() == 0 && goal.getDeadline().isAfter(today) )
.collect(Collectors.toList()); .collect(Collectors.toList());
if (!resultList.isEmpty()) { if (!resultList.isEmpty()) {

View File

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

View File

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

View File

@@ -214,6 +214,10 @@ td:hover {
vertical-align: middle; vertical-align: middle;
} }
.goal {
min-width: 300px;
}
/* ======================= /* =======================
ボタン ボタン
======================= */ ======================= */

View File

@@ -1,15 +0,0 @@
.transaction-item {
display: flex;
align-items: center;
justify-content: space-between;
}
.transaction-buttons {
display: flex;
gap: 10px;
margin-right: 20px;
}
.transaction-buttons form {
margin: 0;
}

View File

@@ -54,143 +54,102 @@
const myChart = const myChart =
new Chart(myCt, { new Chart(myCt, {
type: 'bar', type: 'bar',
data: { data: {
labels: labels, labels: labels,
datasets: [ datasets: [
{ {
label: '達成率', label: '達成率',
data: achievementRates, data: achievementRates,
backgroundColor: backgroundColor:
'rgba(54, 162, 235, 0.5)', 'rgba(54, 162, 235, 0.5)',
borderColor: borderColor:
'rgba(54, 162, 235, 1)', 'rgba(54, 162, 235, 1)',
borderWidth: 1 borderWidth: 1
} }
] ]
}, },
options: { options: {
responsive: true, responsive: true,
maintainAspectRatio: false, maintainAspectRatio: false,
scales: { scales: {
y: { y: {
beginAtZero: true, beginAtZero: true,
max: 100, max: 100,
ticks: { ticks: {
callback: function (value) { callback: function (value) {
return value + '%'; return value + '%';
} }
} }
} }
} }
} }
}); });
</script> </script>
<ul> <ul>
<li th:each="goalForm : ${goalFormList}"> <li th:each="goalForm : ${goalFormList}">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<form th:action="@{/goal}" method="get" class="w-100"> <form th:action="@{/goal}" method="get" class="w-100">
<div class="table-responsive"> <div class="table-responsive">
<table class="table mb-0"> <table class="table mb-0">
<input type="radio" name="goalId" th:value="${goalForm.goalId}" <input type="radio" name="goalId" th:value="${goalForm.goalId}"
th:checked="${graphGoal != null and graphGoal.goalId == goalForm.goalId}" th:checked="${graphGoal != null and graphGoal.goalId == goalForm.goalId}"
onchange="this.form.submit()"> onchange="this.form.submit()">
<tr> <tr>
<th>目標名</th> <th>目標名</th>
<td th:text="${goalForm.goalTitle}"></td> <td th:text="${goalForm.goalTitle}"
class="goal"></td>
</tr> </tr>
<tr> <tr>
<th>目標説明</th > <th>目標説明</th >
<td th:text="${goalForm.goalSubtitle}"></td> <td th:text="${goalForm.goalSubtitle}"
class="goal"></td>
</tr> </tr>
<tr> <tr>
<th>目標金額</th> <th>目標金額</th>
<td th:text="${goalForm.targetAmount}"></td> <td th:text="${goalForm.targetAmount}"
class="goal"></td>
</tr> </tr>
<tr> <tr>
<th>目標達成期限</th> <th>目標達成期限</th>
<td th:text="${goalForm.deadline}"></td> <td th:text="${goalForm.deadline}"
class="goal"></td>
</tr> </tr>
<tr> <tr>
<th>達成率</th> <th>達成率</th>
<td th:text="${goalForm.achievementRate} + '%'"></td> <td th:text="${goalForm.achievementRate} + '%'"
class="goal"></td>
</tr> </tr>
</table> </table>
</div> </div>
</form> </form>
</div> </div>
<div class="d-flex justify-content-end gap-2 mt-3"> <div class="d-flex justify-content-end gap-2 mt-3">
<form th:action="@{/goal/edit}" method="get"> <form th:action="@{/goal/edit}" method="get">
<input type="hidden" name="goalId" th:value="${goalForm.goalId}"> <input type="hidden" name="goalId" th:value="${goalForm.goalId}">
<button type="submit" class="btn btn-sm btn-primary"> <button type="submit" class="btn btn-sm btn-primary">
編集 編集
</button> </button>
</form> </form>
<form th:action="@{/goal/delete}" method="post"> <form th:action="@{/goal/delete}" method="post">
<input type="hidden" name="goalId" th:value="${goalForm.goalId}"> <input type="hidden" name="goalId" th:value="${goalForm.goalId}">
<button type="submit" class="btn btn-sm btn-danger"> <button type="submit" class="btn btn-sm btn-danger">
削除 削除
</button> </button>
</form> </form>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div class="d-grid gap-2 mt-4"> <div class="d-grid gap-2 mt-4">
<form th:action="@{/goal/create}" method="get"> <form th:action="@{/goal/create}" method="get">
<button type="submit" class="btn btn-success w-100"> <button type="submit" class="btn btn-success w-100">
@@ -200,7 +159,6 @@
</form> </form>
<form th:action="@{/goal/record}" method="get"> <form th:action="@{/goal/record}" method="get">
<button type="submit" class="btn btn-sm btn-primary w-100"> <button type="submit" class="btn btn-sm btn-primary w-100">
履歴 履歴
</button> </button>
@@ -208,7 +166,6 @@
</form> </form>
</div> </div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>

View File

@@ -6,7 +6,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Calendar</title> <title>カレンダー</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
@@ -55,51 +55,35 @@
<tbody> <tbody>
<tr th:each="week : ${#numbers.sequence(0, 5)}"> <tr th:each="week : ${#numbers.sequence(0, 5)}">
<td th:each="weekDay : ${#numbers.sequence(0, 6)}"> <td th:each="weekDay : ${#numbers.sequence(0, 6)}">
<a th:if="${week * 7 + weekDay - firstDayOfWeek + 1 >= 1 <a th:if="${week * 7 + weekDay - firstDayOfWeek + 1 >= 1
and week * 7 + weekDay - firstDayOfWeek + 1 <= lastDay}" th:href="@{/transaction/detail( and week * 7 + weekDay - firstDayOfWeek + 1 <= lastDay}" th:href="@{/transaction/detail(
todayDates=${T(java.time.LocalDate).of(year, month, week * 7 + weekDay - firstDayOfWeek + 1)} todayDates=${T(java.time.LocalDate).of(year, month, week * 7 + weekDay - firstDayOfWeek + 1)}
)}" class="a-footer"> )}" class="a-footer">
<div <div
th:if="${week * 7 + weekDay - firstDayOfWeek + 1 >= 1 and week * 7 + weekDay - firstDayOfWeek + 1 <= lastDay}"> th:if="${week * 7 + weekDay - firstDayOfWeek + 1 >= 1 and week * 7 + weekDay - firstDayOfWeek + 1 <= lastDay}">
<div class="date" th:text="${week * 7 + weekDay - firstDayOfWeek + 1}"> <div class="date" th:text="${week * 7 + weekDay - firstDayOfWeek + 1}">
</div> </div>
<div th:each="income : ${incomeList}" <div th:each="income : ${incomeList}"
th:if="${income.date.dayOfMonth == week * 7 + weekDay - firstDayOfWeek + 1}" th:if="${income.date.dayOfMonth == week * 7 + weekDay - firstDayOfWeek + 1}"
class="income" th:text="|収入 +${income.amount}円|"> class="income" th:text="|収入 +${income.amount}円|">
</div> </div>
<div th:each="expense : ${expenseList}" <div th:each="expense : ${expenseList}"
th:if="${expense.date.dayOfMonth == week * 7 + weekDay - firstDayOfWeek + 1}" th:if="${expense.date.dayOfMonth == week * 7 + weekDay - firstDayOfWeek + 1}"
class="expense" th:text="|支出 -${expense.amount}円|"> class="expense" th:text="|支出 -${expense.amount}円|">
</div> </div>
</div> </div>
</a> </a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="card shadow-sm mb-3"> <div class="card shadow-sm mb-3">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between mb-2"> <div class="d-flex justify-content-between mb-2">
<span>収入</span> <span>収入</span>
<span th:text="'¥' + ${totalIncome}"></span> <span th:text="'¥' + ${totalIncome}"></span>
@@ -124,25 +108,19 @@
<span>目標資金</span> <span>目標資金</span>
<span th:text="'¥' + ${targetAmount}"></span> <span th:text="'¥' + ${targetAmount}"></span>
</div> </div>
<div class="d-flex justify-content-between mb-2"> <div class="d-flex justify-content-between mb-2">
<span>現在高</span> <span>現在高</span>
<span th:text="'¥' + ${currentAmount}"></span> <span th:text="'¥' + ${currentAmount}"></span>
</div> </div>
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<span>貯金額</span> <span>貯金額</span>
<span th:text="'¥' + ${saving}"></span> <span th:text="'¥' + ${saving}"></span>
</div> </div>
</div> </div>
</div> </div>
<div class="card shadow-sm"> <div class="card shadow-sm">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between mb-2"> <div class="d-flex justify-content-between mb-2">
<span>達成率</span> <span>達成率</span>
<span th:text="${achievementRate} + '%'" <span th:text="${achievementRate} + '%'"