package com.eactive.eai.rms.bap.loader.service;

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

import javax.servlet.http.HttpServletRequest;

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.loader.dao.SearchBAPDao;
import com.eactive.eai.rms.common.base.BaseService;

@Service("searchBAPService")
public class SearchBAPService extends BaseService {

    @Autowired
    @Qualifier("searchBAPDao")
    private SearchBAPDao dao;
    
    public SearchBAPService() { 
        super();
    }

    /**
     * resource 조회
     */
    public HashMap selectBAPList(HttpServletRequest request, int startNum,int endNum, HashMap<String,Object> paramMap) throws Exception {
		paramMap.put("startNum" , startNum);// 시작 record
		paramMap.put("endNum"   , endNum);// 끝 record

		List list = dao.selectList(paramMap);
		
		HashMap map = new HashMap(); 

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

		map.put("list", list);

		return map;
    } 

}