[FO] 일계부 동력 사용시간 List, 기타 공통 수정

This commit is contained in:
김현주
2025-06-19 10:47:32 +09:00
parent 829069d296
commit 16ffd19b85
13 changed files with 129 additions and 126 deletions

View File

@@ -32,6 +32,19 @@ public class RecordCalendarDao implements RecordCalendarPortOut {
String pathFormat = "/record/%s/%s/%s";
List<CalendarChildren> monthlyList = new ArrayList<>();
monthlyList.add(new CalendarChildren(
"MONTHLY",
"임산물 현황 등록",
monthlyStatus.isForestNone() ? 0 : 1,
monthlyStatus.isForestNone() ? "/info/monthly" : String.format("/info/monthly/month/%s", command.getSearchMonth())));
monthlyList.add(new CalendarChildren(
"BANK",
"은행 자동이체 내역 등록",
monthlyStatus.isBankNone() ? 0 : 1,
(LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMM")).equals(command.getSearchMonth())) ? "/info/bank" : null));
List<RecordCalendar> refineList = new ArrayList<>();
for (DailyRecordCalendarDto calendar : calendarList) {
RecordCalendar refine = new RecordCalendar();
@@ -97,20 +110,8 @@ public class RecordCalendarDao implements RecordCalendarPortOut {
}
}
childList.add(new CalendarChildren(
"MONTHLY",
"임산물 현황 등록",
monthlyStatus.isForestNone() ? 0 : 1,
String.format("/info/monthly/month/%s", command.getSearchMonth())));
childList.add(new CalendarChildren(
"BANK",
"은행 자동이체 내역 등록",
monthlyStatus.isBankNone() ? 0 : 1,
(LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMM")).equals(command.getSearchMonth())) ? "/info/bank" : null));
refine.setChildren(childList);
refine.setMonthly(monthlyList);
refineList.add(refine);
}

View File

@@ -15,4 +15,5 @@ public class RecordCalendar {
private Integer start;
private Integer end;
private List<CalendarChildren> children;
private List<CalendarChildren> monthly;
}