Loginlog接口实现+

This commit is contained in:
2023-12-25 17:13:33 +08:00
parent dd5322b2b9
commit ac6e84bb06
5 changed files with 14 additions and 10 deletions

View File

@@ -8,9 +8,11 @@ import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@Mapper
@Repository
@Mapper
public interface LoginLogsDao {
int deleteByPrimaryKey(Integer id);
@@ -27,6 +29,6 @@ public interface LoginLogsDao {
LoginLogs selectAlreadyExist(int userId);
int updateByUserId(LoginLogs record);
@MapKey("login_time")
public HashMap<Object,Object>getLoginLogs(Integer userId);
public List<LoginLogs> getLoginLogs(Integer userId);
}