dev add stats for search check
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-05 18:55:54 +07:00
parent adc978bea8
commit f90b8a0bce
15 changed files with 261 additions and 53 deletions
@@ -4,6 +4,8 @@ import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ru.soune.nocopy.entity.user.ProtectedFileCheck;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
@Repository
@@ -11,5 +13,9 @@ public interface ProtectedFileCheckRepository extends JpaRepository<ProtectedFil
Optional<ProtectedFileCheck> findByUser_Id(Long userId);
ProtectedFileCheck findByUserId(Long userId);
boolean existsByUser_Id(Long userId);
List<ProtectedFileCheck> findByPeriodStartDateBefore(LocalDate thirtyDaysAgo);
}