@@ -60,7 +60,11 @@ public class AdminController {
|
||||
/* 작가 목록 출력 데이터 */
|
||||
List list = authorService.authorGetList(cri);
|
||||
|
||||
model.addAttribute("list", list);
|
||||
if(!list.isEmpty()) {
|
||||
model.addAttribute("list",list); // 작가 존재 경우
|
||||
} else {
|
||||
model.addAttribute("listCheck", "empty"); // 작가 존재하지 않을 경우
|
||||
}
|
||||
|
||||
/* 페이지 이동 인터페이스 데이터 */
|
||||
model.addAttribute("pageMaker", new PageDTO(cri, authorService.authorGetTotal(cri)));
|
||||
|
||||
Reference in New Issue
Block a user