package com.eactive.eai.rms.bap.manage.schedule.holiday;

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("BapHolidayDao")
@SuppressWarnings({"deprecation","unchecked"})
public class BapHolidayDao extends SqlMapClientTemplateDao {

	public int selectListCount(HashMap<String, Object> param) throws Exception {
    	return (Integer)template.queryForObject("BapHoliday.selectListCount", param);
    }	

	public List<Map<String, Object>> selectList(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("BapHoliday.selectList", param);
    }	

	public HashMap<String, Object> selectDetail(String bJobMsgScheId) throws Exception {
		HashMap<String, Object> param = new HashMap<String, Object>();
		param.put("bJobMsgScheId", bJobMsgScheId);
    	return (HashMap<String, Object>)template.queryForObject("BapHoliday.selectDetail", param);
    }	

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

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

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

	public List<Map<String, Object>> selectBjobMsgDstcd(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("BapHoliday.selectBjobMsgDstcd", param);
    }	

	public List<Map<String, Object>> selectOsidInstiDstcd(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("BapHoliday.selectOsidInstiDstcd", param);
    }	

	public List<Map<String, Object>> selectBjobPtrnDstcd(HashMap<String, Object> param) throws Exception {
    	return (List<Map<String, Object>>)template.queryForList("BapHoliday.selectBjobPtrnDstcd", param);
    }	
}