Loginlog接口实现

This commit is contained in:
2023-12-25 16:29:14 +08:00
parent 8efe35f13b
commit cfd2989dae
8 changed files with 80 additions and 13 deletions

View File

@@ -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);
}