diff --git a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/log/AuditLogRepositoryImpl.java b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/log/AuditLogRepositoryImpl.java index ff72fb73..5818fe5a 100644 --- a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/log/AuditLogRepositoryImpl.java +++ b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/log/AuditLogRepositoryImpl.java @@ -488,7 +488,7 @@ public class AuditLogRepositoryImpl extends QuerydslRepositorySupport private NumberExpression readCount() { return new CaseBuilder() - .when(auditLogEntity.eventType.eq(EventType.READ)) + .when(auditLogEntity.eventType.in(EventType.LIST, EventType.DETAIL)) .then(1) .otherwise(0) .sum(); @@ -496,7 +496,7 @@ public class AuditLogRepositoryImpl extends QuerydslRepositorySupport private NumberExpression cudCount() { return new CaseBuilder() - .when(auditLogEntity.eventType.in(EventType.CREATE, EventType.UPDATE, EventType.DELETE)) + .when(auditLogEntity.eventType.in(EventType.ADDED, EventType.MODIFIED, EventType.REMOVE)) .then(1) .otherwise(0) .sum(); @@ -504,7 +504,7 @@ public class AuditLogRepositoryImpl extends QuerydslRepositorySupport private NumberExpression printCount() { return new CaseBuilder() - .when(auditLogEntity.eventType.eq(EventType.PRINT)) + .when(auditLogEntity.eventType.eq(EventType.OTHER)) .then(1) .otherwise(0) .sum();