package kr.co.jinwoosi.clfd.framework.security.mapper;

import java.util.List;

import egovframework.rte.psl.dataaccess.mapper.Mapper;
import kr.co.jinwoosi.clfd.framework.base.mapper.BaseMapper;
import kr.co.jinwoosi.clfd.framework.security.model.User;
import kr.co.jinwoosi.clfd.framework.security.model.UserSearch;

@Mapper (value="userMapper")
public interface UserMapper extends BaseMapper<User, UserSearch> {
	
	User login (User user);
	int checkIdDuplicate(UserSearch userSearch);
	
	void updateUserLoginFail(User user);
	void updateInitUserLoginFailCnt(User user);
	int userPwdCheck(UserSearch userSearch);
	void updatePwd(User user);
	int userTotalOutCount();
	int thisWeekInUserCount();
	int thisWeekOutUser();
	List<User> thisWeekInUser();
	
}
