This commit is contained in:
@@ -55,4 +55,6 @@ public interface LawCaseRepository extends JpaRepository<LawCase, Long> {
|
||||
|
||||
|
||||
Optional<LawCase> getLawCaseByViolationIdAndType(Long violationId, LawCaseType type);
|
||||
|
||||
boolean existsByViolationId(Long violationId);
|
||||
}
|
||||
|
||||
@@ -95,4 +95,6 @@ public interface ViolationRepository extends JpaRepository<Violation, Long> {
|
||||
|
||||
@Query("SELECT COUNT(DISTINCT c.violation.id) FROM ComplaintEntity c WHERE c.violation IS NOT NULL")
|
||||
Long getViolationsWithComplaintCount();
|
||||
|
||||
boolean existsViolation(Long violationId);
|
||||
}
|
||||
Reference in New Issue
Block a user