[FIX] 日付の設定をデフォルト値を設定しました。

This commit is contained in:
s-choi
2026-09-18 14:06:57 +09:00
parent 6ca5a9eeec
commit ad1121d694

View File

@@ -129,6 +129,10 @@ public class TransactionController {
public String createOneGet(@RequestParam(defaultValue = "") LocalDate today,
Model model) {
if (today == null) {
today = LocalDate.now();
}
List<CategoryForm> categoryFormList = CategoryForm.convertFrom(categoryService.findAll());
TransactionForm transactionForm = new TransactionForm();
@@ -164,7 +168,7 @@ public class TransactionController {
public String updateOneGet(@RequestParam Long transactionId, @RequestParam(defaultValue = "") LocalDate today,
Model model) {
if (today.equals(null)) {
if (today == null) {
today = LocalDate.now();
}