package com.eactive.eai.rms.onl.admin.session;

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

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

@Service
public class SessionHistoryService {
	
	@Autowired
	private SessionHistoryDao sessionHistoryDao;
	
	public HashMap<String, Object> selectList(int startNum, int endNum, HashMap paramMap) throws Exception {

		int totalCount = sessionHistoryDao.selectListCount(paramMap);

		paramMap.put("startNum", startNum);// ½ÃÀÛ record
		paramMap.put("endNum", endNum);// ³¡ record

		List<Map<String, Object>> list = sessionHistoryDao.selectList(paramMap);

		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put("totalCount", totalCount);
		map.put("list", list);

		return map;
	}
}
