/**
   * 프로세스 모니터링로그 상세정보를 조회한다.
   *
   * @param FileSysMntrngLogVO - 프로세스 모니터링로그 VO
   * @return String - 리턴 URL
   * @param fileSysMntrngLogVO
   */
  @RequestMapping("/utl/sys/prm/EgovComUtlProcessMonLog.do")
  public String selectProcessMonLog(
      @ModelAttribute("processMonLogVO") ProcessMonLogVO processMonLogVO, ModelMap model)
      throws Exception {

    ProcessMonLogVO vo = processMonService.selectProcessMonLog(processMonLogVO);

    if (vo.getCreatDt() != null && !vo.getCreatDt().equals("")) {
      if (vo.getCreatDt().length() > 18) {
        vo.setCreatDt(vo.getCreatDt().substring(0, 19));
      }
    }

    model.addAttribute("result", vo);

    return "egovframework/com/utl/sys/prm/EgovComUtlProcessMonLogDetail";
  }
  /**
   * 프로세스 모니터링로그 정보에 대한 목록을 조회한다.
   *
   * @param ProcessMonVO - 프로세스 모니터링로그 VO
   * @return String - 리턴 URL
   * @param processMonVO
   */
  @RequestMapping("/utl/sys/prm/EgovComUtlProcessMonLogList.do")
  public String selectProcessMonLogList(
      @ModelAttribute("searchVO") ProcessMonLogVO processMonLogVO, ModelMap model)
      throws Exception {

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    processMonLogVO.setPageUnit(propertyService.getInt("pageUnit"));
    processMonLogVO.setPageSize(propertyService.getInt("pageSize"));

    PaginationInfo paginationInfo = new PaginationInfo();
    paginationInfo.setCurrentPageNo(processMonLogVO.getPageIndex());
    paginationInfo.setRecordCountPerPage(processMonLogVO.getPageUnit());
    paginationInfo.setPageSize(processMonLogVO.getPageSize());

    processMonLogVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
    processMonLogVO.setLastIndex(paginationInfo.getLastRecordIndex());
    processMonLogVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());

    // 조회기간설정
    if (processMonLogVO.getSearchBgnDe() != null && processMonLogVO.getSearchEndDe() != null) {
      if (!processMonLogVO.getSearchBgnDe().equals("")
          && !processMonLogVO.getSearchEndDe().equals("")) {
        processMonLogVO.setSearchBgnDt(
            processMonLogVO.getSearchBgnDe() + " " + processMonLogVO.getSearchBgnHour());
        processMonLogVO.setSearchEndDt(
            processMonLogVO.getSearchEndDe() + " " + processMonLogVO.getSearchEndHour());
      }
    }

    Map<String, Object> map = processMonService.selectProcessMonLogList(processMonLogVO);
    int totCnt = Integer.parseInt((String) map.get("resultCnt"));
    paginationInfo.setTotalRecordCount(totCnt);

    // 조회시작시
    model.addAttribute("searchBgnHour", (List<ComDefaultCodeVO>) getTimeHH());
    // 조회종료시
    model.addAttribute("searchEndHour", (List<ComDefaultCodeVO>) getTimeHH());

    model.addAttribute("resultList", map.get("resultList"));
    model.addAttribute("resultCnt", map.get("resultCnt"));
    model.addAttribute("paginationInfo", paginationInfo);

    return "egovframework/com/utl/sys/prm/EgovComUtlProcessMonLogList";
  }