dev add new action
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-22 12:16:37 +07:00
parent 572255c066
commit bb96e3ac93
4 changed files with 48 additions and 1 deletions
@@ -56,6 +56,10 @@ public class ViolationService {
}
}
public Violation getById(Long violationId) {
return violationRepository.findById(violationId).orElse(null);
}
public List<FileViolationSummaryDTO> getFileViolationsSummary(Long userId) {
List<FileEntity> userFiles = fileEntityService.getAllUserFiles(userId);
List<Violation> violations = violationRepository.findByFileEntityIn(userFiles);