package com.samsung.embo.kpi.dao;

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

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

@Repository
public class KpiDao {
	private static final String MAPPER = "kpiMapper.";
	private final SqlSession sqlSession;
	public KpiDao(SqlSession sqlSession) {
		this.sqlSession = sqlSession;
	}
	public List<Map<String, Object>> selectModule(Map<String, Object> params) {
		return sqlSession.selectList(MAPPER + "selectModule", params);
	}
	public List<Map<String, Object>> selectTarget(Map<String, Object> params) {
		return sqlSession.selectList(MAPPER + "selectTarget", params);
	}
	public List<Map<String, Object>> selectKpi(Map<String, Object> params) {
		return sqlSession.selectList(MAPPER + "selectKpi", params);
	}
}
