package com.eactive.eai.rms.onl.manage.serviceinfo.company;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;

@Repository("companyDao")
public class CompanyDao extends SqlMapClientTemplateDao {

    public int selectListCount(HashMap paramMap) throws Exception {
    	return (Integer)template.queryForObject("company.selectListCount", paramMap);
    }	
//    public List selectList(HashMap paramMap) throws Exception {
//    	return template.queryForList("company.selectList", paramMap);
//    } 
//    public List selectListToExcel(HashMap paramMap) throws Exception {
//    	return template.queryForList("company.selectListToExcel", paramMap);
//    }	
//    public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
//    	return (HashMap)template.queryForObject("company.selectDetail", paramMap);
//    }	
    public void insert(HashMap paramMap) throws Exception{
        this.template.insert("company.insert", paramMap);
    }      
//    public void update(HashMap paramMap) throws Exception{
//        this.template.insert("company.update", paramMap);
//    }     
    public void delete(HashMap paramMap) throws Exception{
        this.template.delete("company.delete", paramMap);
    }	
    public int selectPopListCount(Map<String, Object> param) throws Exception {
		int totalcnt = (Integer)template.queryForObject("company.selectPopListCount", param);
    	return totalcnt;
    }
	public List<Map<String, Object>> selectPopList(Map<String, Object> paramMap) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("company.selectPopList", paramMap);
    }
	
//	public List selectListMap(HashMap paramMap) throws Exception {
//    	return template.queryForList("company.selectListMap", paramMap);
//    } 
	
}
