dev delete
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-03-11 16:30:26 +07:00
parent 087b9f7b33
commit 88bfe51297
3 changed files with 3 additions and 5 deletions
@@ -41,7 +41,7 @@ public class Violation {
@CreatedDate
@Column(name = "created_at", updatable = false)
private LocalDateTime createdDate;
private LocalDateTime createdDate = LocalDateTime.now();
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "file")
@@ -63,9 +63,7 @@ public class ViolationHandler implements RequestHandler {
.msgId(request.getMsgId())
.messageBody(groupedData)
.build();
}
// Пагинация
else {
} else {
Page<Violation> violationPage;
if (startDate != null && endDate != null) {
@@ -96,7 +96,7 @@ public class ViolationService {
return violations.stream()
.collect(Collectors.groupingBy(
v -> extractGroupKey(v.getUrl(), groupBy),
v -> extractGroupKey(v.getPageUrl(), groupBy),
Collectors.counting()
));
}