@@ -223,6 +223,8 @@ public class ViolationService {
|
||||
ViolationStatus.COMPLAINT_AND_LEGAL_IN_WORK.name()
|
||||
);
|
||||
|
||||
List<Long> violationIds = violations.stream().map(Violation::getId).toList();
|
||||
|
||||
long newViolations = violations.stream()
|
||||
.filter(v -> v.getStatus().equals(ViolationStatus.NEW.name()))
|
||||
.count();
|
||||
@@ -235,8 +237,6 @@ public class ViolationService {
|
||||
.filter(v -> v.getStatus().equals(ViolationStatus.AUTHORIZED_USE.name()))
|
||||
.count();
|
||||
|
||||
List<Long> violationIds = violations.stream().map(Violation::getId).toList();
|
||||
|
||||
int totalComplaints = 0;
|
||||
int totalLawCases = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user