package com.dbs.mplus.service.admin.agg.repository;

import java.util.List;

import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.stereotype.Repository;

import com.dbs.mplus.framework.exception.MPlusServiceException;
import com.dbs.mplus.framework.template.GenericRepository;
import com.dbs.mplus.service.admin.agg.repository.dao.AggUserTmp;

@Repository 
public class AggUserTmpRepository extends GenericRepository<AggUserTmp> { 
	
	/**
	 * 연령대별 통계 데이터 얻기 
	 * @return
	 * @throws MPlusServiceException
	 */
	public List<AggUserTmp> findByAgeOrder() throws MPlusServiceException {
		return super.queryForList("findByAgeOrder", new MapSqlParameterSource()); 

	}	
	
	public List<AggUserTmp> findByPostno() throws MPlusServiceException { 
		return super.queryForList("findByPostno", new MapSqlParameterSource()); 
	}
}
