package kr.co.jinwoosi.clfd.framework.security.service.impl;

import javax.annotation.Resource;

import kr.co.jinwoosi.clfd.framework.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import kr.co.jinwoosi.clfd.framework.security.mapper.LoginLogMapper;
import kr.co.jinwoosi.clfd.framework.security.model.LoginLog;
import kr.co.jinwoosi.clfd.framework.security.model.LoginLogSearch;
import kr.co.jinwoosi.clfd.framework.security.service.LoginLogService;

@Service(value="loginLogService")
public class LoginLogServiceImpl extends BaseServiceImpl<LoginLog, LoginLogSearch, LoginLogMapper> implements LoginLogService {

	@Override
	@Resource (name="loginLogMapper")
	protected void setMapper (LoginLogMapper mapper) {
		super.setMapper (mapper);
	}
	
	public void logout(Long loginLogId) {
		LoginLog loginLogVO = new LoginLog();
		loginLogVO.setLoginLogId(loginLogId);
		update(loginLogVO);
	}
}
