이준호 메인화면 대시보드 속도 개선 수정
This commit is contained in:
parent
36720c23d2
commit
991c5ad789
@ -214,157 +214,157 @@ public class EgovMainController {
|
||||
}
|
||||
}
|
||||
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
{//일일관리자 접속 리스트
|
||||
LoginLog loginLog = new LoginLog();
|
||||
paginationInfo.setCurrentPageNo(loginLog.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(loginLog.getPageUnit());
|
||||
paginationInfo.setPageSize(loginLog.getPageSize());
|
||||
|
||||
loginLog.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
loginLog.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
loginLog.setRecordCountPerPage(10); //50개까지 보여주기
|
||||
//if(null != loginVO){ loginLog.setSiteId(loginVO.getSiteId()); }
|
||||
List<LoginLog> adminLogList = loginLogService.selectMainAmdinLog(loginLog);
|
||||
int adminLogListCnt = loginLogService.selectMainAmdinLogTotCnt(loginLog);
|
||||
paginationInfo.setTotalRecordCount(adminLogListCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("adminLogList", adminLogList);
|
||||
}
|
||||
{// 최근 게시물 / 새개시물 카운트
|
||||
//0번째 부터 6개의 항목만 조회
|
||||
boardVO.setFirstIndex(0);
|
||||
boardVO.setRecordCountPerPage(5);
|
||||
// 최신날짜 우선순위 조회
|
||||
boardVO.setSearchSortCnd("frstRegisterPnttm");
|
||||
boardVO.setSearchSortOrd("desc");
|
||||
List<BoardVO> adminBoardList = bbsMngService.selectAdminMainBoard(boardVO);
|
||||
model.addAttribute("adminBoardList", adminBoardList);
|
||||
|
||||
int adminMainNewBoardCnt = bbsMngService.selectAdminMainNewBoardCnt(boardVO);
|
||||
model.addAttribute("adminMainNewBoardCnt", adminMainNewBoardCnt);
|
||||
|
||||
}
|
||||
{// 관리자 로그관리 리스트
|
||||
LoginLog loginLog = new LoginLog();
|
||||
//0번째 부터 6개의 항목만 조회
|
||||
loginLog.setFirstIndex(0);
|
||||
loginLog.setRecordCountPerPage(6);
|
||||
// 최신날짜 우선순위 조회
|
||||
loginLog.setSearchSortCnd("creatDt");
|
||||
loginLog.setSearchSortOrd("desc");
|
||||
List<LoginLog> adminLogList = loginLogService.selectAmdinLog(loginLog);
|
||||
model.addAttribute("adminLogList", adminLogList);
|
||||
|
||||
}
|
||||
{//신규가입회원 목록
|
||||
UserDefaultVO userSearchVO = new UserDefaultVO();
|
||||
|
||||
//0번째 부터 4개의 항목만 조회
|
||||
userSearchVO.setFirstIndex(0);
|
||||
userSearchVO.setRecordCountPerPage(4);
|
||||
|
||||
// 가입일시 우선순위 조회
|
||||
userSearchVO.setSearchSortCnd("sbscrbDe");
|
||||
userSearchVO.setSearchSortOrd("desc");
|
||||
|
||||
userSearchVO.setAdminYn("N");
|
||||
List<?> userList = userManageService.selectUserList(userSearchVO);
|
||||
model.addAttribute("userList", userList);
|
||||
|
||||
UserDefaultVO userCount = userManageService.selectUserCount();
|
||||
model.addAttribute("userCount", userCount);
|
||||
}
|
||||
|
||||
{//접속통계 사용자만
|
||||
StatsVO statsVO = new StatsVO();
|
||||
statsVO.setRecordCountPerPage(20); //일카운터(20개)
|
||||
statsVO.setFirstIndex(0);
|
||||
List<StatsVO> statsDayList = conectStatsService.selectMainStatsDay(statsVO); //일일접속카운터(관리자)
|
||||
List<StatsVO> statsMonthList = conectStatsService.selectMainStatsMonth(statsVO); //월별접속카운터(관리자)
|
||||
List<StatsVO> statsYearList = conectStatsService.selectMainStatsYear(statsVO); //연도변접속카운터(관리자)
|
||||
{//일일통계 /* 연도없애기 */
|
||||
JSONObject statsObject = new JSONObject();
|
||||
JSONArray cntArray = new JSONArray();
|
||||
JSONArray dateArray = new JSONArray();
|
||||
for(StatsVO tempStatsVO : statsDayList){
|
||||
cntArray.add(tempStatsVO.getCnt());
|
||||
dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()));
|
||||
}
|
||||
statsObject.put("cnt" , cntArray);
|
||||
statsObject.put("date" , dateArray);
|
||||
model.addAttribute("statsDayList", statsObject);
|
||||
}
|
||||
{//월통계
|
||||
JSONObject statsObject = new JSONObject();
|
||||
JSONArray cntArray = new JSONArray();
|
||||
JSONArray dateArray = new JSONArray();
|
||||
for(StatsVO tempStatsVO : statsMonthList){
|
||||
cntArray.add(tempStatsVO.getCnt());
|
||||
dateArray.add(tempStatsVO.getStatsDate());
|
||||
}
|
||||
statsObject.put("cnt" , cntArray);
|
||||
statsObject.put("date" , dateArray);
|
||||
model.addAttribute("statsMonthList", statsObject);
|
||||
}
|
||||
{//년통계
|
||||
JSONObject statsObject = new JSONObject();
|
||||
JSONArray cntArray = new JSONArray();
|
||||
JSONArray dateArray = new JSONArray();
|
||||
cntArray.add(0); //데이터가 2018 한건만 조회 되어서 2017년도 0 넣어줌
|
||||
dateArray.add("2017");
|
||||
for(StatsVO tempStatsVO : statsYearList){
|
||||
cntArray.add(tempStatsVO.getCnt());
|
||||
dateArray.add(tempStatsVO.getStatsDate());
|
||||
}
|
||||
statsObject.put("cnt" , cntArray);
|
||||
statsObject.put("date" , dateArray);
|
||||
model.addAttribute("statsYearList", statsObject);
|
||||
}
|
||||
|
||||
//PC, 모바일 접속통계(주간)
|
||||
statsVO.setRecordCountPerPage(7); //일카운터(7일 : 일주일)
|
||||
statsVO.setFirstIndex(0);
|
||||
List<StatsVO> statsPcDayList = conectStatsService.selectPcMainStatsDay(statsVO); //일일접속카운터(사용자)
|
||||
List<StatsVO> statsMobileDayList = conectStatsService.selectMobileMainStatsDay(statsVO); //일일접속카운터(사용자)
|
||||
List<StatsVO> statsAllDayList = conectStatsService.selectPcMobileMainStatsDay(statsVO); //모바일+PC(사용자)
|
||||
{//PC
|
||||
JSONObject statsObject = new JSONObject();
|
||||
JSONArray cntArray = new JSONArray();
|
||||
JSONArray dateArray = new JSONArray();
|
||||
for(StatsVO tempStatsVO : statsPcDayList){
|
||||
cntArray.add(tempStatsVO.getCnt());
|
||||
dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()) );
|
||||
}
|
||||
statsObject.put("cnt" , cntArray);
|
||||
statsObject.put("date" , dateArray);
|
||||
model.addAttribute("statsPcDayList", statsObject);
|
||||
}
|
||||
{//모바일
|
||||
JSONObject statsObject = new JSONObject();
|
||||
JSONArray cntArray = new JSONArray();
|
||||
JSONArray dateArray = new JSONArray();
|
||||
for(StatsVO tempStatsVO : statsMobileDayList){
|
||||
cntArray.add(tempStatsVO.getCnt());
|
||||
dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()) );
|
||||
}
|
||||
statsObject.put("cnt" , cntArray);
|
||||
statsObject.put("date" , dateArray);
|
||||
model.addAttribute("statsMobileDayList", statsObject);
|
||||
}
|
||||
{//전체
|
||||
JSONObject statsObject = new JSONObject();
|
||||
JSONArray cntArray = new JSONArray();
|
||||
JSONArray dateArray = new JSONArray();
|
||||
for(StatsVO tempStatsVO : statsAllDayList){
|
||||
cntArray.add(tempStatsVO.getCnt());
|
||||
dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()) );
|
||||
}
|
||||
statsObject.put("cnt" , cntArray);
|
||||
statsObject.put("date" , dateArray);
|
||||
model.addAttribute("statsPcMobileDayList", statsObject);
|
||||
}
|
||||
}
|
||||
// PaginationInfo paginationInfo = new PaginationInfo();
|
||||
// {//일일관리자 접속 리스트
|
||||
// LoginLog loginLog = new LoginLog();
|
||||
// paginationInfo.setCurrentPageNo(loginLog.getPageIndex());
|
||||
// paginationInfo.setRecordCountPerPage(loginLog.getPageUnit());
|
||||
// paginationInfo.setPageSize(loginLog.getPageSize());
|
||||
//
|
||||
// loginLog.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
// loginLog.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
// loginLog.setRecordCountPerPage(10); //50개까지 보여주기
|
||||
// //if(null != loginVO){ loginLog.setSiteId(loginVO.getSiteId()); }
|
||||
// List<LoginLog> adminLogList = loginLogService.selectMainAmdinLog(loginLog);
|
||||
// int adminLogListCnt = loginLogService.selectMainAmdinLogTotCnt(loginLog);
|
||||
// paginationInfo.setTotalRecordCount(adminLogListCnt);
|
||||
// model.addAttribute("paginationInfo", paginationInfo);
|
||||
// model.addAttribute("adminLogList", adminLogList);
|
||||
// }
|
||||
// {// 최근 게시물 / 새개시물 카운트
|
||||
// //0번째 부터 6개의 항목만 조회
|
||||
// boardVO.setFirstIndex(0);
|
||||
// boardVO.setRecordCountPerPage(5);
|
||||
// // 최신날짜 우선순위 조회
|
||||
// boardVO.setSearchSortCnd("frstRegisterPnttm");
|
||||
// boardVO.setSearchSortOrd("desc");
|
||||
// List<BoardVO> adminBoardList = bbsMngService.selectAdminMainBoard(boardVO);
|
||||
// model.addAttribute("adminBoardList", adminBoardList);
|
||||
//
|
||||
// int adminMainNewBoardCnt = bbsMngService.selectAdminMainNewBoardCnt(boardVO);
|
||||
// model.addAttribute("adminMainNewBoardCnt", adminMainNewBoardCnt);
|
||||
//
|
||||
// }
|
||||
// {// 관리자 로그관리 리스트
|
||||
// LoginLog loginLog = new LoginLog();
|
||||
// //0번째 부터 6개의 항목만 조회
|
||||
// loginLog.setFirstIndex(0);
|
||||
// loginLog.setRecordCountPerPage(6);
|
||||
// // 최신날짜 우선순위 조회
|
||||
// loginLog.setSearchSortCnd("creatDt");
|
||||
// loginLog.setSearchSortOrd("desc");
|
||||
// List<LoginLog> adminLogList = loginLogService.selectAmdinLog(loginLog);
|
||||
// model.addAttribute("adminLogList", adminLogList);
|
||||
//
|
||||
// }
|
||||
// {//신규가입회원 목록
|
||||
// UserDefaultVO userSearchVO = new UserDefaultVO();
|
||||
//
|
||||
// //0번째 부터 4개의 항목만 조회
|
||||
// userSearchVO.setFirstIndex(0);
|
||||
// userSearchVO.setRecordCountPerPage(4);
|
||||
//
|
||||
// // 가입일시 우선순위 조회
|
||||
// userSearchVO.setSearchSortCnd("sbscrbDe");
|
||||
// userSearchVO.setSearchSortOrd("desc");
|
||||
//
|
||||
// userSearchVO.setAdminYn("N");
|
||||
// List<?> userList = userManageService.selectUserList(userSearchVO);
|
||||
// model.addAttribute("userList", userList);
|
||||
//
|
||||
// UserDefaultVO userCount = userManageService.selectUserCount();
|
||||
// model.addAttribute("userCount", userCount);
|
||||
// }
|
||||
//
|
||||
// {//접속통계 사용자만
|
||||
// StatsVO statsVO = new StatsVO();
|
||||
// statsVO.setRecordCountPerPage(20); //일카운터(20개)
|
||||
// statsVO.setFirstIndex(0);
|
||||
// List<StatsVO> statsDayList = conectStatsService.selectMainStatsDay(statsVO); //일일접속카운터(관리자)
|
||||
// List<StatsVO> statsMonthList = conectStatsService.selectMainStatsMonth(statsVO); //월별접속카운터(관리자)
|
||||
// List<StatsVO> statsYearList = conectStatsService.selectMainStatsYear(statsVO); //연도변접속카운터(관리자)
|
||||
// {//일일통계 /* 연도없애기 */
|
||||
// JSONObject statsObject = new JSONObject();
|
||||
// JSONArray cntArray = new JSONArray();
|
||||
// JSONArray dateArray = new JSONArray();
|
||||
// for(StatsVO tempStatsVO : statsDayList){
|
||||
// cntArray.add(tempStatsVO.getCnt());
|
||||
// dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()));
|
||||
// }
|
||||
// statsObject.put("cnt" , cntArray);
|
||||
// statsObject.put("date" , dateArray);
|
||||
// model.addAttribute("statsDayList", statsObject);
|
||||
// }
|
||||
// {//월통계
|
||||
// JSONObject statsObject = new JSONObject();
|
||||
// JSONArray cntArray = new JSONArray();
|
||||
// JSONArray dateArray = new JSONArray();
|
||||
// for(StatsVO tempStatsVO : statsMonthList){
|
||||
// cntArray.add(tempStatsVO.getCnt());
|
||||
// dateArray.add(tempStatsVO.getStatsDate());
|
||||
// }
|
||||
// statsObject.put("cnt" , cntArray);
|
||||
// statsObject.put("date" , dateArray);
|
||||
// model.addAttribute("statsMonthList", statsObject);
|
||||
// }
|
||||
// {//년통계
|
||||
// JSONObject statsObject = new JSONObject();
|
||||
// JSONArray cntArray = new JSONArray();
|
||||
// JSONArray dateArray = new JSONArray();
|
||||
// cntArray.add(0); //데이터가 2018 한건만 조회 되어서 2017년도 0 넣어줌
|
||||
// dateArray.add("2017");
|
||||
// for(StatsVO tempStatsVO : statsYearList){
|
||||
// cntArray.add(tempStatsVO.getCnt());
|
||||
// dateArray.add(tempStatsVO.getStatsDate());
|
||||
// }
|
||||
// statsObject.put("cnt" , cntArray);
|
||||
// statsObject.put("date" , dateArray);
|
||||
// model.addAttribute("statsYearList", statsObject);
|
||||
// }
|
||||
//
|
||||
// //PC, 모바일 접속통계(주간)
|
||||
// statsVO.setRecordCountPerPage(7); //일카운터(7일 : 일주일)
|
||||
// statsVO.setFirstIndex(0);
|
||||
// List<StatsVO> statsPcDayList = conectStatsService.selectPcMainStatsDay(statsVO); //일일접속카운터(사용자)
|
||||
// List<StatsVO> statsMobileDayList = conectStatsService.selectMobileMainStatsDay(statsVO); //일일접속카운터(사용자)
|
||||
// List<StatsVO> statsAllDayList = conectStatsService.selectPcMobileMainStatsDay(statsVO); //모바일+PC(사용자)
|
||||
// {//PC
|
||||
// JSONObject statsObject = new JSONObject();
|
||||
// JSONArray cntArray = new JSONArray();
|
||||
// JSONArray dateArray = new JSONArray();
|
||||
// for(StatsVO tempStatsVO : statsPcDayList){
|
||||
// cntArray.add(tempStatsVO.getCnt());
|
||||
// dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()) );
|
||||
// }
|
||||
// statsObject.put("cnt" , cntArray);
|
||||
// statsObject.put("date" , dateArray);
|
||||
// model.addAttribute("statsPcDayList", statsObject);
|
||||
// }
|
||||
// {//모바일
|
||||
// JSONObject statsObject = new JSONObject();
|
||||
// JSONArray cntArray = new JSONArray();
|
||||
// JSONArray dateArray = new JSONArray();
|
||||
// for(StatsVO tempStatsVO : statsMobileDayList){
|
||||
// cntArray.add(tempStatsVO.getCnt());
|
||||
// dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()) );
|
||||
// }
|
||||
// statsObject.put("cnt" , cntArray);
|
||||
// statsObject.put("date" , dateArray);
|
||||
// model.addAttribute("statsMobileDayList", statsObject);
|
||||
// }
|
||||
// {//전체
|
||||
// JSONObject statsObject = new JSONObject();
|
||||
// JSONArray cntArray = new JSONArray();
|
||||
// JSONArray dateArray = new JSONArray();
|
||||
// for(StatsVO tempStatsVO : statsAllDayList){
|
||||
// cntArray.add(tempStatsVO.getCnt());
|
||||
// dateArray.add(tempStatsVO.getStatsDate().substring(5,tempStatsVO.getStatsDate().length()) );
|
||||
// }
|
||||
// statsObject.put("cnt" , cntArray);
|
||||
// statsObject.put("date" , dateArray);
|
||||
// model.addAttribute("statsPcMobileDayList", statsObject);
|
||||
// }
|
||||
// }
|
||||
|
||||
//조정 목록, 이번달 현황 조회(최근 접수, 진행 사건, 처리현황)
|
||||
PgrCmmVO cmmVO = new PgrCmmVO();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user