package com.eactive.eai.rms.onl.adapter.sna;

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;

import com.eactive.eai.rms.onl.adapter.AgentExecCommand;

@Service("snaTrackingService")
public class SnaTrackingService  extends AgentExecCommand{
	
	@Autowired
	@Qualifier("snaTrackingDao")
	private SnaTrackingDao dao;

	public HashMap selectList(int startNum,int endNum,HashMap paramMap) throws Exception{
	// 전체 목록수 얻기
	int totalCount = dao.selectListCount(paramMap);

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

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

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

	return map;
}

	
}
