RED-4579 - fixed sort for audit screen
This commit is contained in:
parent
880f8a23e9
commit
686a7a51f2
@ -12,6 +12,7 @@ import java.util.List;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.jpa.domain.Specification;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -74,7 +75,7 @@ public class AuditPersistenceService {
|
||||
spec = spec.and(objectIdMatches(auditRequest.getObjectId()));
|
||||
}
|
||||
|
||||
return auditRepository.findAll(spec, PageRequest.of(auditRequest.getPage(), auditRequest.getPageSize()));
|
||||
return auditRepository.findAll(spec, PageRequest.of(auditRequest.getPage(), auditRequest.getPageSize(), Sort.Direction.DESC, "recordDate"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user