package com.eactive.eai.rms.bap.statistics.eaibzwkdstcd.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;

@Service("bapMessageMonthlyService")
public class BapMessageMonthlyService {
	@Autowired
	@Qualifier("bapMessageMonthlyDAO")
    private BapMessageMonthlyDAO dao = null;
    
    public HashMap<String, Object> selectByIntfId(HashMap<String,Object> param) throws Exception{
    	
    	// 전체 목록수 얻기
    	HashMap<String, Object> totalMap = dao.selectListCount(param);
    	
    	List<HashMap<String, Object>> list = dao.selectByIntfId(param);
    	
    	HashMap<String, Object> map = new HashMap<String, Object>();

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

}
