package com.eactive.eai.rms.ext.meta.epb;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

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

@Repository
public class EpbMetaInstSyncDao extends SqlMapClientTemplateDao implements EpbMetaSyncDao {

	public List<EpbMetaVo> selectCdList(HashMap paramMap) throws Exception {
		return template.queryForList("EpbMetaSync.selectInstCdList", paramMap);
	}

	public Timestamp selectLastUpdateDate(HashMap paramMap) throws Exception {
		return (Timestamp) template.queryForObject("EpbMetaSync.selectInstLastUpdateDate", paramMap);
	}

	public void insertCodeInfo(EpbMetaVo epbMetaVo) throws Exception {
		template.queryForObject("EpbMetaSync.insertInstCodeInfo", epbMetaVo);
	}

	public void updateCodeInfo(EpbMetaVo epbMetaVo) throws Exception {
		template.queryForObject("EpbMetaSync.updateInstCodeInfo", epbMetaVo);
	}

	@Override
	public void mergeAuthToAdmin() {
		// nothing to do
	}
	
}
