dev check violation for lawcase,complaint
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-21 13:15:11 +07:00
parent 5c0a0c146b
commit 0c522e2faf
5 changed files with 24 additions and 2 deletions
@@ -90,9 +90,18 @@ public class ViolationService {
cb.between(root.get("createdDate"), startDate, endDate));
}
List<String> allStatuses = Arrays.asList(
"NEW", "SHOWED", "LEGAL_IN_WORK",
"COMPLAINT_IN_WORK", "COMPLAINT_AND_LEGAL_IN_WORK",
"AUTHORIZED_USE"
);
if (status != null && !status.isEmpty()) {
spec = spec.and((root, query, cb) ->
cb.equal(root.get("status"), status));
} else {
spec = spec.and((root, query, cb) ->
root.get("status").in(allStatuses));
}
Sort sort = Sort.by("ASC".equalsIgnoreCase(sortDirection) ?