@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user