package com.eactive.eai.rms.data.entity.onl.logger;

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

import org.springframework.stereotype.Repository;

import com.eactive.eai.common.util.UUID;
import com.eactive.eai.data.entity.onl.logger.EAILogId;
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
import com.eactive.eai.rms.data.entity.onl.apim.portalstatistics.PortalStatisticsVO;

@Repository("eaiLogDAOForEMS")
public class EAILogDAOForEMS extends SqlMapClientTemplateDao {

	@SuppressWarnings("unchecked")
    public List<PortalStatisticsVO> selectLogList(HashMap<String, Object> paramMap) {
        List<PortalStatisticsVO> selectLogList = this.template.queryForList("EAILog.selectLogList", paramMap);

        for(PortalStatisticsVO vo : selectLogList) {
            vo.setRequestUri(UUID.randomUUID().toString());
        }
        return selectLogList;
    }
}
