11 Commits

Author SHA1 Message Date
acd7534fdb Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/transaction_detail.html
2026-09-28 16:38:26 +09:00
ee5ec5009d Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-28 15:28:53 +09:00
7604e9ee76 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-28 14:22:22 +09:00
26fa2365e8 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/select_course.html
2026-09-28 09:43:26 +09:00
5adb527d7a Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 14:23:20 +09:00
e54e0133f7 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 14:03:37 +09:00
c3dae348bf no message 2026-09-25 13:38:58 +09:00
ea1e18ad93 Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 13:35:56 +09:00
bb3b8965b2 Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/menu.html
#	src/main/resources/templates/select_course.html
#	src/main/resources/templates/transaction_detail.html
2026-09-25 13:28:04 +09:00
3b239d07bd Merge branch 'k-kobayashi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto 2026-09-25 13:17:12 +09:00
0c54a42b97 Merge branch 'k-oshita' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into s-morimto
# Conflicts:
#	src/main/resources/templates/menu.html
#	src/main/resources/templates/transaction_detail.html
2026-09-25 13:14:52 +09:00
21 changed files with 122 additions and 142 deletions

View File

@@ -55,11 +55,15 @@ public class GlobalExceptionHandler {
@ExceptionHandler(Exception.class) @ExceptionHandler(Exception.class)
public String AllException(Model model, Exception e, HttpSession session) { public String AllException(Model model, Exception e, HttpSession session) {
model.addAttribute("error", SEVERE_ERROR_MESSAGE_BAD_REQUEST);
e.printStackTrace(); e.printStackTrace();
System.out.println("session invalidated exception"); LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE_ILLEGAL_TRANSITION, e);
System.out.println("session invalidated");
session.invalidate(); session.invalidate();
return "error"; return "error";
} }
} }

View File

@@ -57,7 +57,7 @@ public class GoalModel {
goalModel.getTargetAmount(), goalModel.getTargetAmount(),
goalModel.getDeadline(), goalModel.getDeadline(),
0, 0,
userEntity); userEntity, 0);
} }
public static GoalModel convertFrom(GoalForm goalForm) { public static GoalModel convertFrom(GoalForm goalForm) {

View File

@@ -53,13 +53,13 @@ public class UserServiceImpl implements UserService {
userEntity.setQuestionEntity(questionEntity); userEntity.setQuestionEntity(questionEntity);
userEntity.setCourseEntity(courseEntity); userEntity.setCourseEntity(courseEntity);
userEntity.setDeleteFlag(0); userEntity.setDeleteFlag(0);
goalEntity.setUserEntity(userRepository.save(userEntity)); userRepository.save(userEntity);
goalRepository.save(goalEntity);
} }
@Override @Override

View File

@@ -29,7 +29,7 @@ public class CategoryEntity {
@Column(name = "category_id") @Column(name = "category_id")
private Long categoryId; private Long categoryId;
@Column(name = "category_name", nullable = false, length = 50) @Column(name = "category_name", nullable = false)
private String categoryName; private String categoryName;
@Column(name = "transaction_type", nullable = false) @Column(name = "transaction_type", nullable = false)

View File

@@ -27,7 +27,7 @@ public class CourseEntity {
@Column(name = "course_id") @Column(name = "course_id")
private Long courseId; private Long courseId;
@Column(name = "course_name", nullable = false, length = 50) @Column(name = "course_name", nullable = false)
private String courseName; private String courseName;

View File

@@ -34,7 +34,7 @@ public class FixedCostEntity {
@JoinColumn(name = "category_id") @JoinColumn(name = "category_id")
private CategoryEntity categoryEntity; private CategoryEntity categoryEntity;
@Column(name = "fixed_cost_name", nullable = false, length = 50) @Column(name = "fixed_cost_name", nullable = false)
private String fixedCostName; private String fixedCostName;
@Column(name = "amount", nullable = false) @Column(name = "amount", nullable = false)

View File

@@ -29,10 +29,10 @@ public class GoalEntity {
private Long goalId; private Long goalId;
@Column(name = "goal_title", nullable = true) @Column(name = "goal_title", nullable = true)
private String goalTitle = "名前を設定してください"; private String goalTitle;
@Column(name = "goal_subtitle", nullable = true) @Column(name = "goal_subtitle", nullable = true)
private String goalSubtitle = "説明を書いてください"; private String goalSubtitle;
@Column(name = "target_amount", nullable = true) @Column(name = "target_amount", nullable = true)
private Integer targetAmount; private Integer targetAmount;
@@ -47,4 +47,6 @@ public class GoalEntity {
@JoinColumn(name = "user_id") @JoinColumn(name = "user_id")
private UserEntity userEntity; private UserEntity userEntity;
private Integer deleteFlag;
} }

View File

@@ -1,5 +0,0 @@
package com.example.demo.app.infra.entity;
public class TestController6 {
}

View File

@@ -30,7 +30,7 @@ public class UserEntity {
@Column(name = "user_id") @Column(name = "user_id")
private Long userId; private Long userId;
@Column(name = "user_name", nullable = false, length = 100) @Column(name = "user_name", nullable = false)
private String userName; private String userName;
@Column(name = "mail_address", nullable = false) @Column(name = "mail_address", nullable = false)
@@ -39,7 +39,7 @@ public class UserEntity {
@Column(name = "password", nullable = false) @Column(name = "password", nullable = false)
private String password; private String password;
@Column(name = "secret_answer", nullable = false, length = 100) @Column(name = "secret_answer", nullable = false)
private String secretQuestionAnswer; private String secretQuestionAnswer;
@Column(name = "birth_date", nullable = false) @Column(name = "birth_date", nullable = false)

View File

@@ -11,5 +11,4 @@ public class ErrorController {
public String showError() { public String showError() {
return TransitionTargetPageNameKeyword.ERROR_HTML; return TransitionTargetPageNameKeyword.ERROR_HTML;
} }
} }

View File

@@ -57,7 +57,8 @@ public class ProfileController {
profileModel.getBirthDate(), profileModel.getBirthDate(),
profileModel.getSaving(), profileModel.getSaving(),
profileModel.getAnnualIncome(), profileModel.getAnnualIncome(),
profileModel.getMonthlyBudget()); profileModel.getMonthlyBudget(),
profileModel.getBirthDate());
model.addAttribute(PageReturnAttributeKeyword.PROFILE_EDIT_FORM, profileEditForm); model.addAttribute(PageReturnAttributeKeyword.PROFILE_EDIT_FORM, profileEditForm);
return TransitionTargetPageNameKeyword.PROFILE_EDIT_HTML; return TransitionTargetPageNameKeyword.PROFILE_EDIT_HTML;

View File

@@ -16,4 +16,5 @@ public class ProfileEditForm {
private Integer saving; private Integer saving;
private Integer annualIncome; private Integer annualIncome;
private Integer monthlyBudget; private Integer monthlyBudget;
private LocalDate birthDate;
} }

View File

@@ -9,13 +9,13 @@
<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">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<div class="main-container"> <div class="main-container">
<div> <div>
<ul class="list-unstyled p-0 m-0"> <ul>
<li class="card shadow-sm mb-3" th:each="categoryForm : ${categoryFormList}"> <li class="card shadow-sm mb-3" th:each="categoryForm : ${categoryFormList}">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
@@ -49,30 +49,20 @@
</div> </div>
<hr>
<hr>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div class="d-grid mt-4">
<form th:action="@{/category/create}" method="get"> <form th:action="@{/category/create}" method="get">
<input type="hidden" name="today" id="today" th:value="${today}">
<input type="hidden" <button type="submit">新規登録</button>
name="today"
id="today"
th:value="${today}">
<button class="btn btn-success w-100" type="submit">
新規登録
</button>
</form> </form>
</div>
</div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>

View File

@@ -10,7 +10,7 @@
<link rel="stylesheet" th:href="@{/css/style.css}"> <link rel="stylesheet" th:href="@{/css/style.css}">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<div class="main-container"> <div class="main-container">
@@ -19,7 +19,7 @@
<h2 class="page-title" th:text="${today}"></h2> <h2 class="page-title" th:text="${today}"></h2>
<div> <div>
<ul class="list-unstyled p-0 m-0"> <ul>
<li th:each="fixedCostForm : ${fixedCostFormList}" class="card shadow-sm mb-3"> <li th:each="fixedCostForm : ${fixedCostFormList}" class="card shadow-sm mb-3">
<div class="card-body"> <div class="card-body">
@@ -52,29 +52,21 @@
</div> </div>
<hr>
<hr>
</div> </div>
</li> </li>
</div>
</ul> </ul>
</div> </div>
<div class="d-grid mt-4">
<form th:action="@{/category/create}" method="get">
<input type="hidden"
name="today"
id="today"
th:value="${today}">
<button class="btn btn-success w-100" type="submit">
新規登録
</button>
<form th:action="@{/fixed-cost/create}" method="get">
<input type="hidden" name="today" id="today" th:value="${today}">
<button type="submit">新規登録</button>
</form> </form>
</div>
</div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>

View File

@@ -52,12 +52,9 @@
</form> </form>
</div>
</div>
</div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>
</html> </html>

View File

@@ -8,7 +8,7 @@
<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">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
@@ -74,16 +74,16 @@
</ul> </ul>
</div> </div>
</div>
<div class="d-grid mt-4"> <div class="d-grid mt-4">
<form th:action="@{/goal}" method="get"> <form th:action="@{/goal}" method="get">
<button class="btn btn-success w-100" type="submit"> <button class="btn btn-success w-100" type="submit">
戻る 戻る
</button> </button>
</form> </form>
</div> </div>
</div>
</div> </div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>

View File

@@ -138,6 +138,8 @@
</div> </div>
</div> </div>
<div class="card shadow-sm"> <div class="card shadow-sm">

View File

@@ -5,24 +5,21 @@
<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">
<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">
<link rel="stylesheet" th:href="@{/css/style.css}">
<title>コース選択</title> <title>コース選択</title>
</head> </head>
<body style="padding-bottom: 120px; padding-top: 60px;"> <body style="padding-bottom: 120px">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<h1 class="page-title">コース選択</h1> <h1 class="page-title">コース選択</h1>
<div class="d-grid mt-4">
<th:block th:if="${mode == 'change'}"> <th:block th:if="${mode == 'change'}">
<form th:action="@{/course/create}" method="get"> <form th:action="@{/course/create}" method="get">
<button class="btn btn-success w-100" type="submit"> <button type="submit">新規登録</button>
新規登録
</button>
</form> </form>
</th:block>
</div>
</th:block>
<form th:action="${mode == 'regist'} ? @{/user/register/return}: @{/change}" method="post"> <form th:action="${mode == 'regist'} ? @{/user/register/return}: @{/change}" method="post">
<button type="submit" class="btn btn-primary w-100">確定</button> <button type="submit" class="btn btn-primary w-100">確定</button>

View File

@@ -80,7 +80,7 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="goalId" class="form-label">目標貯金額</label> <label for="goalId" class="form-label">目標</label>
<input type="number" id="goalId" class="form-control" th:field="*{goalId}" min="0" required> <input type="number" id="goalId" class="form-control" th:field="*{goalId}" min="0" required>
</div> </div>