package com.eactive.eai.rms.onl.statistics.management.condition;

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

import org.springframework.stereotype.Repository;

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

/**
 * <pre>
 * 1. 기능 : 
 * 2. 처리 개요 : 
 *     - 
 * 3. 주의사항 : 
 * </pre>
 * @author  : music75
 * @version : $Revision: 1.1 $
 * @since : rts 1.0
 * @spring.bean id="eaiSvcNameDailyDAO"
 * @spring.property name="dataSource" ref="dataSource"
 */
@Repository("statisticsManagementDAO")
public class StatisticsManagementDAO extends SqlMapClientTemplateDao {

    /**
     * <pre>
     * 1. 기능 : 통계자료 생성 현황 리스트 조회
     * 2. 처리 개요 : 
     *     - 
     * 3. 주의사항 : Overriden 
     * </pre>
     * @author  : music75
     * @version : $Revision: 1.1 $
     * @since : rts 1.0
     * @see 
     * @param statisticsForm
     * @return
     */
	public int selectStatisticsManagementCount(HashMap<String, Object> paramMap) throws Exception {
		return (Integer) this.template.queryForObject("StatisticsManagement.selectStatisticsManagementCount", paramMap);
	}
	
    public List selectStatisticsManagement(HashMap<String,Object> paramMap) throws Exception{
        return this.template.queryForList("StatisticsManagement.selectStatisticsManagement", paramMap);
    }
    
    public HashMap<String, Object> selectDetail(HashMap<String, Object> paramMap) throws Exception {
		return (HashMap<String, Object>) this.template.queryForObject("StatisticsManagement.selectDetail", paramMap);
	}
    
	public void insert(HashMap<String, Object> paramMap) throws Exception {
		this.template.insert("StatisticsManagement.insert", paramMap);
	}

	public void update(HashMap<String, Object> paramMap) throws Exception {
		this.template.update("StatisticsManagement.update", paramMap);
	}

	public void delete(HashMap<String, Object> paramMap) throws Exception {
		this.template.delete("StatisticsManagement.delete", paramMap);
	}
	
	public List selectListToExcel(HashMap param) throws Exception {
	  	return template.queryForList("StatisticsManagement.selectListToExcel", param);
	}
    
    
}
