21 Commits

Author SHA1 Message Date
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
546a2927eb [FIX]目標がすぐ改行される問題を解消しました 2026-09-29 16:01:27 +09:00
s-choi
129d74a4df Merge branch 'n-kawahito' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-choi 2026-09-29 15:59:41 +09:00
s-choi
d3b76fb2cd [FIX] 所持金がnullに表示されるバグを修正しました。 2026-09-29 15:59:14 +09:00
s-choi
67cc89d2a8 [FIX] 固定費の収支区分が自動で入力されないバグを修正しました。 2026-09-29 15:58:55 +09:00
31b5e54023 [FIX]ボタン表示ミスを修正しました 2026-09-29 15:31:23 +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
1d34a2189d Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into n-kawahito 2026-09-29 15:25:45 +09:00
kkazuya
f319fcb9f8 [EDIT] 固定費登録の収支区分とカテゴリーを入力必須にしました 2026-09-29 15:22:15 +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
78d3042299 [EDIT]マージ跡を消しました 2026-09-29 15:13:56 +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 52 additions and 43 deletions

View File

@@ -49,7 +49,7 @@ public class GlobalExceptionHandler {
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();
return TransitionTargetPageNameKeyword.ERROR_HTML;

View File

@@ -275,7 +275,9 @@ public class GoalController {
int currentAmount = goalService.getCurrentAmount(userId);
model.addAttribute(PageReturnAttributeKeyword.CURRENT_AMOUNT, currentAmount);
System.out.println("************************currentAmount : " + currentAmount);
session.setAttribute(PageReturnAttributeKeyword.CURRENT_AMOUNT, currentAmount);
return TransitionTargetPageNameKeyword.GOAL_CREATE_HTML;
}

View File

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

View File

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

View File

@@ -37,7 +37,7 @@
<div class="mb-3">
<label class="form-label" for="transactionType">収入・支出</label>
<select class="form-select" id="transactionType">
<select class="form-select" id="transactionType" required>
<option value="">選択してください</option>
<option value="0">支出</option>
@@ -51,7 +51,7 @@
<div class="mb-3">
<label class="form-label" for="categoryId">カテゴリ</label>
<select class="form-select" id="categoryId" th:field="*{categoryId}">
<select class="form-select" id="categoryId" th:field="*{categoryId}" required>
<option value="">選択してください</option>
<option class="expenseListClass" th:each="category : ${expenseList}"

View File

@@ -37,7 +37,9 @@
<div>
<label>目標金額</label>
<input type="number" th:field="*{targetAmount}" required min="1">
<span th:text="|所持金:${currentAmount}円|"></span>
<br>
<span th:text="|所持金:${session.currentAmount}円|"></span>
<input type="hidden" name="currentAmount" th:value="${currentAmount}">
<span th:if="${message != null}">
<span th:text="${message}" style="color: red;"></span>
</span>

View File

@@ -128,27 +128,32 @@
<tr>
<th>目標名</th>
<td th:text="${goalForm.goalTitle}"></td>
<td th:text="${goalForm.goalTitle}"
class="goal"></td>
</tr>
<tr>
<th>目標説明</th>
<td th:text="${goalForm.goalSubtitle}"></td>
<th>目標説明</th >
<td th:text="${goalForm.goalSubtitle}"
class="goal"></td>
</tr>
<tr>
<th>目標金額</th>
<td th:text="${goalForm.targetAmount}"></td>
<td th:text="${goalForm.targetAmount}"
class="goal"></td>
</tr>
<tr>
<th>目標達成期限</th>
<td th:text="${goalForm.deadline}"></td>
<td th:text="${goalForm.deadline}"
class="goal"></td>
</tr>
<tr>
<th>達成率</th>
<td th:text="${goalForm.achievementRate} + '%'"></td>
<td th:text="${goalForm.achievementRate} + '%'"
class="goal"></td>
</tr>
</table>

View File

@@ -13,7 +13,6 @@
<div th:replace="~{header :: header}"></div>
<h1 class="page-title">コース選択</h1>
<<<<<<< HEAD
<div class="d-grid gap-2 mt-4">
<th:block th:if="${mode == 'change'}">
<form th:action="@{/course/create}" method="get">
@@ -23,16 +22,8 @@
</form>
</th:block>
<form th:action="${mode == 'regist'} ? @{/user/register/return}: @{/change}" method="post">
=======
<th:block th:if="${mode == 'change'}">
<form th:action="@{/course/create}" method="get">
<button type="submit">新規登録</button>
</form>
</th:block>
<form th:action="${mode == 'regist'} ? @{/user/register/return}: @{/change}" id="totalForm" method="post">
>>>>>>> 65b4a9e54a5bc5c1d1480fd4b9255addf73628e4
<button type="submit" class="btn btn-primary w-100">確定</button>
<div class="accordion" id="accordionExample">

View File

@@ -122,6 +122,16 @@
const tType = '[[${session.tType}]]';
console.log("tType: " + tType);
if (tType.includes("0")) {
console.log("okokokokokokokkkokokokoko");
transactionType.value = "0";
} else if (tType.includes("1")) {
transactionType.value = "1";
}
function toggleCategory() {
if (transactionType.value === "0") {
@@ -164,12 +174,6 @@
});
if (tType == "0") {
transactionType.value = "0";
} else if (tType == "1") {
transactionType.value = "1";
}
toggleCategory();
</script>