Compare commits
12 Commits
296bcf8d70
...
fbec462f65
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbec462f65 | ||
|
|
8b9765852b | ||
|
|
830d8a672f | ||
|
|
ae53f3e733 | ||
| d87bdfbe91 | |||
|
|
22191e63ef | ||
|
|
e261065a62 | ||
| 49ad550839 | |||
|
|
bd2cad7c34 | ||
|
|
db7fc1d16d | ||
| 23232954f1 | |||
| 4e3477af77 |
@@ -28,5 +28,5 @@ public interface AllocationRepository extends JpaRepository<AllocationEntity, Al
|
|||||||
+ " ORDER BY a.courseEntity.courseId ASC, "
|
+ " ORDER BY a.courseEntity.courseId ASC, "
|
||||||
+ " a.categoryEntity.categoryId ASC ")
|
+ " a.categoryEntity.categoryId ASC ")
|
||||||
List<CourseInfoModel> findAllJoinedAllocation();
|
List<CourseInfoModel> findAllJoinedAllocation();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,5 +16,6 @@ public interface UserRepository extends JpaRepository<UserEntity, Long> {
|
|||||||
String mailAddress,
|
String mailAddress,
|
||||||
String password);
|
String password);
|
||||||
|
|
||||||
|
Optional<UserEntity> findByMailAddress(String mailAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,5 +31,19 @@ public class UserController {
|
|||||||
|
|
||||||
return "user_register_confirm";
|
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">
|
<table class="table text-center">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">カテゴリ別</th>
|
<th scope="col"></th>
|
||||||
<th scope="col">支出</th>
|
<th scope="col">支出</th>
|
||||||
<th scope="col">前月比</th>
|
<th scope="col">前月比</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -20,8 +20,17 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">総支出</th>
|
<th scope="row">総支出</th>
|
||||||
<td th:text="'¥' + ${analysisForm.currentMonthTotalAmount}">0</td>
|
<td th:text="'¥' + ${analysisForm.currentMonthTotalAmount}">
|
||||||
<td th:text="'¥' + ${analysisForm.totalDifferenceAmount}">0</td>
|
0
|
||||||
|
</td>
|
||||||
|
<td th:text="${analysisForm.totalDifferenceAmount >= 0}
|
||||||
|
? '+' + ${analysisForm.totalDifferenceAmount}
|
||||||
|
: '-' + ${analysisForm.totalDifferenceAmount}"
|
||||||
|
th:class="${analysisForm.totalDifferenceAmount >= 0}
|
||||||
|
? 'color-danger;'
|
||||||
|
: 'color-primary;'">
|
||||||
|
0
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -44,7 +53,7 @@
|
|||||||
<tr th:each="category : ${analysisForm.categoryAnalysisFormList}">
|
<tr th:each="category : ${analysisForm.categoryAnalysisFormList}">
|
||||||
|
|
||||||
<th scope="row"
|
<th scope="row"
|
||||||
th;text="${category.categoryName}">
|
th:text="${category.categoryName}">
|
||||||
食費
|
食費
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
@@ -53,10 +62,20 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<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>
|
</span>
|
||||||
<br>
|
<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>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user