dev fix add count
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-28 14:03:43 +07:00
parent 66af0ea285
commit 610ab0977d
@@ -223,6 +223,8 @@ public class ViolationService {
ViolationStatus.COMPLAINT_AND_LEGAL_IN_WORK.name() ViolationStatus.COMPLAINT_AND_LEGAL_IN_WORK.name()
); );
List<Long> violationIds = violations.stream().map(Violation::getId).toList();
long newViolations = violations.stream() long newViolations = violations.stream()
.filter(v -> v.getStatus().equals(ViolationStatus.NEW.name())) .filter(v -> v.getStatus().equals(ViolationStatus.NEW.name()))
.count(); .count();
@@ -235,8 +237,6 @@ public class ViolationService {
.filter(v -> v.getStatus().equals(ViolationStatus.AUTHORIZED_USE.name())) .filter(v -> v.getStatus().equals(ViolationStatus.AUTHORIZED_USE.name()))
.count(); .count();
List<Long> violationIds = violations.stream().map(Violation::getId).toList();
int totalComplaints = 0; int totalComplaints = 0;
int totalLawCases = 0; int totalLawCases = 0;