package com.ifish.dao;

import java.util.List;

import com.ifish.dto.ShopsLookUserDto;
import com.ifish.entity.User;
import com.ifish.hibernate.Pagination;

/** 
 * @ClassName: UserDao 
 * @Description: TODO 
 * @author ggw 
 *  
 */
public interface UserDao extends BaseDao<User, Integer>{
	
	/**
	 * 商家看护下的某个用户的所有摄像头
	 * @param shopsUserId
	 * @param firstResult
	 * @param pageSize
	 * @return
	 */
	public Pagination<ShopsLookUserDto> findByCriteria(Integer shopsUserId,Integer firstResult,Integer pageSize);
	
	
	/**
	 * 更新用户登陆时间和登陆次数
	 * @param userId
	 * @return
	 */
	public int executeLoginUpdate(Integer userId,String loginType);
	
	/**
	 * 获取用户ID
	 * @param userId
	 * @param firstResult
	 * @param maxResults
	 * @return
	 */
	public List<Integer> getUserIds(Integer userId,Integer firstResult,int maxResults);
}
