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

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

import java.util.List;

public interface UserRecordDao extends JpaRepository<UserRecord, Integer>, JpaSpecificationExecutor<UserRecord> {
    UserRecord findByUserId(Integer userId);
    List<UserRecord> findAllByUserId(Integer userId);
}
