Loginlog接口实现
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
package com.lovenav.dao;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.lovenav.entity.LoginLogs;
|
||||
import org.apache.ibatis.annotations.MapKey;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface LoginLogsDao {
|
||||
@@ -21,4 +27,6 @@ public interface LoginLogsDao {
|
||||
LoginLogs selectAlreadyExist(int userId);
|
||||
|
||||
int updateByUserId(LoginLogs record);
|
||||
@MapKey("login_time")
|
||||
public HashMap<Object,Object>getLoginLogs(Integer userId);
|
||||
}
|
Reference in New Issue
Block a user