공지사항 검색, 페이징 추가.
This commit is contained in:
@@ -26,7 +26,8 @@ class GetNoticesUIController {
|
||||
private final GetNoticesPortIn getNoticesPortIn;
|
||||
|
||||
@GetMapping(path = "/info/notice")
|
||||
String operate(Model model, @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, page = 0, size = 5) Pageable pageable, GetNoticesReqVO reqVO) {
|
||||
String operate(Model model, @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, page = 0, size = 5) Pageable pageable
|
||||
, GetNoticesReqVO reqVO) {
|
||||
reqVO.setSearchOpen("true");
|
||||
|
||||
Page<GetNotices> notices =
|
||||
@@ -35,6 +36,7 @@ class GetNoticesUIController {
|
||||
new GetNoticesCmd(
|
||||
reqVO.getSearchField(), reqVO.getSearchValue(), reqVO.getSearchOpen()));
|
||||
|
||||
model.addAttribute("reqVO", reqVO);
|
||||
model.addAttribute("notices", notices);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user