임산물현황 달 리스트

This commit is contained in:
주우성
2025-06-14 20:39:34 +09:00
parent 944b9475b1
commit cffe52132a
6 changed files with 30 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
package app.module.front.usecase.info.monthly.getMonthlysUI.adapters.web;
import app.module.core.config.application.enums.MonthStatus;
import app.module.core.config.application.util.CommonUtil;
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
@@ -9,6 +10,7 @@ import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
import app.module.core.usecase.notice.getNotices.ports.application.domain.GetNotices;
import app.module.core.usecase.notice.getNotices.ports.application.domain.GetNoticesCmd;
import app.module.front.config.application.util.AuthUtil;
import app.module.front.usecase.info.monthly.getMonthlysUI.adapters.web.model.GetMontylyssReqVO;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Page;
@@ -32,14 +34,18 @@ class GetMontylysUIController {
@PageableDefault(sort = "month", direction = Sort.Direction.DESC, page = 0, size = 13) Pageable pageable,
GetMontylyssReqVO reqVO) {
Page<GetMonthlyInputStatuss> notices =
Page<GetMonthlyInputStatuss> list =
portIn.operate(
pageable,
new GetMonthlyInputStatussCmd(
reqVO.getSearchField(), reqVO.getSearchValue()));
reqVO.getSearchField(), reqVO.getSearchValue(), AuthUtil.getUserSeq()));
model.addAttribute("reqVO", reqVO);
model.addAttribute("list", notices);
model.addAttribute("list", list);
// TODO 페키지명이 넘무 길어서 그냥
model.addAttribute("MonthStatus", MonthStatus.class);
return "info/monthly/monthlys";
}
}