package com.eactive.eai.rms.bap.tansaction.transactionTrace;

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("bapTransactionTraceService")
public class BapTransactionTraceService extends BapBaseService {

	@Autowired
	@Qualifier("bapTransactionTraceDao")
	private BapTransactionTraceDao 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);// 시작 record
		paramMap.put("endNum"   , endNum);// 끝 record

		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;

	}
	
	public List<Map<String, Object>> selectOsidInstiDstcd(String bjobBzwkDstcd) throws Exception {

		HashMap<String, Object> param = new HashMap<String, Object>();
		param.put("bjobBzwkDstcd", bjobBzwkDstcd);

		return dao.selectOsidInstiDstcd(param);
	}

}