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

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 AutomaticTerminalStatusService {

	@Autowired
	private AutomaticTerminalDao autoTerminalDao;

	public HashMap<String, Object> selectList(int startNum, int endNum, HashMap paramMap) throws Exception {

		// 전체 목록수 얻기
		int totalCount = autoTerminalDao.selectListCount(paramMap);

		paramMap.put("startNum", startNum);// 시작 record
		paramMap.put("endNum", endNum);// 끝 record

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

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

		return map;
	}

}
