|
|
|
@ -56,61 +56,7 @@ public class XitMainController extends AbstractController {
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name = "", value = "/mainPage", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String mainPage(@ModelAttribute("searchVO") XitBasicBbsMngSearchVO searchVO, HttpServletRequest request, ModelMap model, @RequestParam Map<String, Object> param) throws Exception{
|
|
|
|
|
/*
|
|
|
|
|
searchVO.setBbsId("BBSMSTR_00001");
|
|
|
|
|
searchVO.setFirstIndex(0);
|
|
|
|
|
// List<XitBasicBbsMngVO> resultList1 = xitBasicBbsMngService.findList(searchVO); //공지사항
|
|
|
|
|
// model.addAttribute("resultList1", resultList1);;
|
|
|
|
|
//
|
|
|
|
|
// searchVO.setBbsId("BBSMSTR_00003");
|
|
|
|
|
// List<XitBasicBbsMngVO> resultList2 = xitBasicBbsMngService.findList(searchVO); //업무게시판
|
|
|
|
|
// model.addAttribute("resultList2", resultList2);
|
|
|
|
|
|
|
|
|
|
//noinspection unchecked
|
|
|
|
|
model.addAttribute("resultList1", CacheServiceUtils.findBaseBbsList(ConvertUtils.toObjectFromClass(searchVO, Map.class)));
|
|
|
|
|
|
|
|
|
|
searchVO.setBbsId("BBSMSTR_00003");
|
|
|
|
|
//noinspection unchecked
|
|
|
|
|
model.addAttribute("resultList2", CacheServiceUtils.findBaseBbsList(ConvertUtils.toObjectFromClass(searchVO, Map.class)));
|
|
|
|
|
|
|
|
|
|
// // 공지사항 메인 컨텐츠 조회 시작 ---------------------------------
|
|
|
|
|
// BoardVO boardVO = new BoardVO();
|
|
|
|
|
// boardVO.setPageUnit(10);
|
|
|
|
|
// boardVO.setPageSize(10);
|
|
|
|
|
// boardVO.setBbsId("BBSMSTR_AAAAAAAAAAAA");
|
|
|
|
|
//
|
|
|
|
|
// PaginationInfo paginationInfo = new PaginationInfo();
|
|
|
|
|
//
|
|
|
|
|
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
|
|
|
|
|
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
|
|
|
|
|
// paginationInfo.setPageSize(boardVO.getPageSize());
|
|
|
|
|
//
|
|
|
|
|
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
|
|
|
|
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
|
|
|
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
|
|
|
//
|
|
|
|
|
// Map<String, Object> map = bbsMngService.selectBoardArticles(boardVO, "BBSA02");
|
|
|
|
|
// model.addAttribute("notiList", map.get("resultList"));
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// // 공지사항 메인컨텐츠 조회 끝 -----------------------------------
|
|
|
|
|
//
|
|
|
|
|
// // 업무게시판 메인 컨텐츠 조회 시작 -------------------------------
|
|
|
|
|
// boardVO.setPageUnit(5);
|
|
|
|
|
// boardVO.setPageSize(10);
|
|
|
|
|
// boardVO.setBbsId("BBSMSTR_CCCCCCCCCCCC");
|
|
|
|
|
//
|
|
|
|
|
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
|
|
|
|
|
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
|
|
|
|
|
// paginationInfo.setPageSize(boardVO.getPageSize());
|
|
|
|
|
//
|
|
|
|
|
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
|
|
|
|
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
|
|
|
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
|
|
|
//
|
|
|
|
|
// model.addAttribute("bbsList", bbsMngService.selectBoardArticles(boardVO, "BBSA02").get("resultList"));
|
|
|
|
|
*/
|
|
|
|
|
// 업무게시판 메인컨텐츠 조회 끝 -----------------------------------
|
|
|
|
|
|
|
|
|
|
return "fims/framework/biz/cmm/XitMain.main";
|
|
|
|
|
}
|
|
|
|
@ -136,46 +82,9 @@ public class XitMainController extends AbstractController {
|
|
|
|
|
//noinspection unchecked
|
|
|
|
|
mav.addObject("resultList2", CacheServiceUtils.findBaseBbsList(ConvertUtils.toObjectFromClass(searchVO, Map.class)));
|
|
|
|
|
|
|
|
|
|
// // 공지사항 메인 컨텐츠 조회 시작 ---------------------------------
|
|
|
|
|
// BoardVO boardVO = new BoardVO();
|
|
|
|
|
// boardVO.setPageUnit(10);
|
|
|
|
|
// boardVO.setPageSize(10);
|
|
|
|
|
// boardVO.setBbsId("BBSMSTR_AAAAAAAAAAAA");
|
|
|
|
|
//
|
|
|
|
|
// PaginationInfo paginationInfo = new PaginationInfo();
|
|
|
|
|
//
|
|
|
|
|
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
|
|
|
|
|
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
|
|
|
|
|
// paginationInfo.setPageSize(boardVO.getPageSize());
|
|
|
|
|
//
|
|
|
|
|
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
|
|
|
|
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
|
|
|
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
|
|
|
//
|
|
|
|
|
// Map<String, Object> map = bbsMngService.selectBoardArticles(boardVO, "BBSA02");
|
|
|
|
|
// model.addAttribute("notiList", map.get("resultList"));
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// // 공지사항 메인컨텐츠 조회 끝 -----------------------------------
|
|
|
|
|
//
|
|
|
|
|
// // 업무게시판 메인 컨텐츠 조회 시작 -------------------------------
|
|
|
|
|
// boardVO.setPageUnit(5);
|
|
|
|
|
// boardVO.setPageSize(10);
|
|
|
|
|
// boardVO.setBbsId("BBSMSTR_CCCCCCCCCCCC");
|
|
|
|
|
//
|
|
|
|
|
// paginationInfo.setCurrentPageNo(boardVO.getPageIndex());
|
|
|
|
|
// paginationInfo.setRecordCountPerPage(boardVO.getPageUnit());
|
|
|
|
|
// paginationInfo.setPageSize(boardVO.getPageSize());
|
|
|
|
|
//
|
|
|
|
|
// boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
|
|
|
|
// boardVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
|
|
|
// boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
|
|
|
//
|
|
|
|
|
// model.addAttribute("bbsList", bbsMngService.selectBoardArticles(boardVO, "BBSA02").get("resultList"));
|
|
|
|
|
|
|
|
|
|
// 업무게시판 메인컨텐츠 조회 끝 -----------------------------------
|
|
|
|
|
return mav;
|
|
|
|
|
//return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"cmm/XitMain2";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|