Exemplo n.º 1
0
  /**
   * 고객 회사정보 LIST
   *
   * @param map
   * @return
   */
  @SuppressWarnings("unchecked")
  public List getChmanComList(HashMap paramMap) {
    List list = null;
    try {
      String pageNum = WebUtil.nullCheck((String) paramMap.get("pageNum"), "1");
      String pageSize = WebUtil.nullCheck((String) paramMap.get("pageSize"), "10");

      int totConCnt = chmanDao.selectChmanComTotCount(paramMap);

      NewPageNavigator pageNavi = new NewPageNavigator();
      pageNavi.setParameterMap(paramMap);
      pageNavi.setTotalRow(totConCnt);
      pageNavi.setPageSize(Integer.parseInt(pageSize));
      pageNavi.setCurrentPage(Integer.parseInt(pageNum));

      paramMap.put("pageSize", pageSize);
      paramMap.put("pageNum", pageNum);

      list = chmanDao.selectChmanComList(paramMap);
      paramMap.put("pageNavi", pageNavi);

    } catch (Exception e) {
      logger.error(e, e);
    }
    return list;
  }
Exemplo n.º 2
0
 /**
  * 고객 회사정보 카운트
  *
  * @param map
  * @return
  */
 @SuppressWarnings("unchecked")
 public int getChmanComCount(Map map) throws Exception {
   int nRet = 0;
   try {
     nRet = chmanDao.selectChmanComTotCount(map);
   } catch (Exception e) {
     throw new Exception();
   }
   return nRet;
 }