package io.renren.modules.admin.dao;

import io.renren.modules.admin.entity.MemberLoginLogEntity;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author huwhois
 * @email huwhois@gmail.com
 * @date 2020-07-09 09:40:13
 */
@Mapper
public interface MemberLoginLogDao extends BaseMapper<MemberLoginLogEntity> {

    @Select("select * from member_login_log where user_id=#{userId} order by id desc limit 2;")
	List<MemberLoginLogEntity> getLoginInfo(Integer userId);
	
}
