package com.eactive.eai.rms.onl.statistics.eaisvcname.monthly;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;



/**
 * <pre>
 * 1. 기능 : 
 * 2. 처리 개요 : 
 *     - 
 * 3. 주의사항 : 
 * </pre>
 * @author  : music75
 * @version : $Revision: 1.1 $
 * @since : rts 1.0
 * @spring.bean id ="eaiBzwkDstcdDailyService" 
 * @spring.property name="eaiBzwkDstcdDailyDAO" ref="eaiBzwkDstcdDailyDAO"
 */
@Service("eaiSvcNameMonthlyService")
public class EaiSvcNameMonthlyService {
	@Autowired
	@Qualifier("eaiSvcNameMonthlyDAO")
    private EaiSvcNameMonthlyDAO dao = null;
    
//    public HashMap selectByEaiSvcNameMonthly(int startNum,int endNum, HashMap<String,Object> param) throws Exception{
   	public HashMap<String,Object> selectByEaiSvcNameMonthly(HashMap<String,Object> param) throws Exception{
    	// 전체 목록수 얻기
    	HashMap<String,Object> totalMap = dao.selectListCount(param);

    	List<HashMap<String,Object>> list = dao.selectByEaiSvcNameMonthly(param);
    	
    	HashMap<String,Object> map = new HashMap<String,Object>();

		map.put("totalSum", totalMap);
		map.put("list", list);
		
        return map;
    }

}
