package com.eactive.eai.rms.bap.manage.schedule.shedule;

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

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

import com.eactive.eai.rms.bap.common.base.BapBaseService;

@Service("bapScheduleMonitorService")
public class BapScheduleMonitorService extends BapBaseService {
	
	@Autowired
	@Qualifier("bapScheduleMonitorDao")
	private BapScheduleMonitorDao dao;

	public HashMap<String, Object> selectList(int startNum,int endNum, HashMap<String, Object> paramMap) throws Exception {
		int totalCount = dao.selectListCount(paramMap);

		paramMap.put("startNum" , startNum);
		paramMap.put("endNum"   , endNum);

		List<Map<String, Object>> list = dao.selectList(paramMap);
		HashMap<String, Object> map = new HashMap<String, Object>();

		map.put("totalCount", totalCount);
		map.put("list", list);

		return map;
	}
}