package com.tykj.dev.device.user.subject.dao;

import com.tykj.dev.device.user.subject.entity.UserLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserLogDao extends JpaRepository<UserLog, Integer>, JpaSpecificationExecutor<UserLog> {

    List<UserLog> findAllByUserIdOrderByTimeAsc(Integer userId);
}
