34 lines
785 B
Java
34 lines
785 B
Java
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;
|
|
import java.util.List;
|
|
|
|
|
|
@Repository
|
|
@Mapper
|
|
public interface LoginLogsDao {
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
int insert(LoginLogs record);
|
|
|
|
int insertSelective(LoginLogs record);
|
|
|
|
LoginLogs selectByPrimaryKey(Integer id);
|
|
|
|
int updateByPrimaryKeySelective(LoginLogs record);
|
|
|
|
int updateByPrimaryKey(LoginLogs record);
|
|
|
|
LoginLogs selectAlreadyExist(int userId);
|
|
|
|
int updateByUserId(LoginLogs record);
|
|
|
|
public List<LoginLogs> getLoginLogs(Integer userId);
|
|
} |