package com.eactive.eai.rms.common.acl.user;

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

import org.springframework.stereotype.Repository;

import com.eactive.eai.rms.common.base.SqlMapClientForMonitoringTemplateDao;

@Repository
@SuppressWarnings({ "deprecation", "unchecked" })
public class UserDao extends SqlMapClientForMonitoringTemplateDao {
	public HashMap<String, Object> selectDetail(HashMap<String, Object> paramMap) throws Exception {
		return (HashMap<String, Object>) this.template.queryForObject("User.selectDetail", paramMap);
	}

	/* userSyncJob */
	public List<HashMap<String, Object>> selectCompanyList(HashMap<String, Object> paramMap) {
		return (List<HashMap<String, Object>>) this.template.queryForList("User.selectCompanyList", paramMap);
	}
	public List<HashMap<String, Object>> selectDeleteCompanyList(HashMap<String, Object> paramMap) {
		return (List<HashMap<String, Object>>) this.template.queryForList("User.selectDeleteCompanyList", paramMap);
	}
	
	/* updateUserAccountLockJob */
	public List<HashMap<String, Object>> updateUserAccountLock(HashMap<String, Object> paramMap) {
		return  (List<HashMap<String, Object>>) this.template.queryForList("User.updateUserAccountLock", paramMap);
	}
	
	/* updateUserAccountLockJob */
	public List<HashMap<String, Object>> updatePortalUserAccountLock(HashMap<String, Object> paramMap) {
		return  (List<HashMap<String, Object>>) this.template.queryForList("User.updatePortalUserAccountLock", paramMap);
	}
	
}
