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

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

	public int selectListCount(HashMap<String, Object> param) throws Exception {

		int totalcnt = (Integer)template.queryForObject("BzwkToService.selectListCount", param);

    	return totalcnt;
    }	

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

	public HashMap<String, Object> selectDetail(String eaiBzwkDstcd) throws Exception {
		HashMap<String, Object> param = new HashMap<String, Object>();

		param.put("eaiBzwkDstcd", eaiBzwkDstcd);
     	return (HashMap<String, Object>)template.queryForObject("BzwkToService.selectDetail", param);
    }

	
    public void insert(HashMap<String, Object> paramMap) throws Exception{

        this.template.insert("BzwkToService.insert", paramMap);
    }

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

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


    
}