Сделать сервис getOperations с постраничной отдачей, можно вместо лист использовать Page
Сортировка всегда по id (ASC)
Добавить возможность передать параметры page (по умолчанию первая) и size (по умолчанию 10, максимально 100). Напиши полную реализацию, методы которые используются уже реализованы их не нужно писать
@GetMapping(value = "", produces = APPLICATION_JSON)
    @ResponseBody
    public List<AcquiringNotification> getOperations(@RequestParam("partnerId") Long partnerId,
                                                     @RequestParam(value = "orderId", required = false) Long orderId,
                                                     @RequestParam(value = "shopOrderId", required = false) String shopOrderId,
                                                     @RequestParam(value = "reference", required = false) String reference,
                                                     @RequestParam(value = "from", required = false) String from,
                                                     @RequestParam(value = "to", required = false) String to,
                                                     @RequestParam(value = "status", required = false) String status,
                                                     @RequestParam("sign") String sign, HttpServletResponse response) {
        final String methodName = "[getOperations]";
        log.info("[getOperations] partnerId = {}, orderId = {}, shopOrderId = {}, reference = {}, from = {}, to = {}, status = {}",
                partnerId, orderId, shopOrderId, reference, from, to, status);
        try {
            List<AcquiringNotification> operations = acquiringOperationService.getOperations(partnerId, orderId, isEmpty(shopOrderId) ? reference : shopOrderId, from, to, status, sign);
            return replaceOperationStates(partnerId, operations);
        } catch (UnauthorizedException e) {
            log.warn(methodName + "{}", e.getMessage());
            setErrorInfo(response, SC_UNAUTHORIZED, e.getMessage());
            return Collections.emptyList();
        } catch (CommonAppException e) {
            log.warn(methodName, e);
            setErrorInfo(response, SC_BAD_REQUEST, e.getMessage());
            return Collections.emptyList();
        } catch (Exception e) {
            log.error(methodName, e);
            Sentry.captureException(e);
            setErrorInfo(response, SC_INTERNAL_SERVER_ERROR, COMMON_ERROR_MESSAGE);
            return Collections.emptyList();
        }
    }

 @Override
    public List<AcquiringNotification> getOperations(Long partnerId, Long orderId, String shopOrderId, String from, String to, String status, String sign) {
        EntityGraph<AcquiringOperation> entityGraph = dataService.em().createEntityGraph(AcquiringOperation.class);
        entityGraph.addAttributeNodes("cardData");
        standardChecks(partnerId, orderId, shopOrderId, from, to, status, sign);
        List<AcquiringOperation> acquiringOperations;
        Company partner = dataService.selectFromWhere(QCompany.company, QCompany.class, p -> p.id.eq(partnerId)).fetchFirst();
        boolean isAgent = partnerRoleService.hasRole(partner, PartnerRoleEnum.ACQ_AGENT);
        if (orderId == null && isEmpty(shopOrderId)) {
            // From
            LocalDateTime parsedFrom = (from == null ? toLocalDateTime(startDay(new Date())) : toLocalDateTime(startDay(parseDate(from))));
            if (parsedFrom == null) {
                throw new CommonAppException("Ошибка формата даты [from] = " + from);
            }
            final LocalDateTime dateFrom = parsedFrom.minusNanos(1);
            // To
            LocalDateTime parsedTo = (to == null ? toLocalDateTime(endDay(toDate(dateFrom.plusNanos(1)))) : toLocalDateTime(endDay(parseDate(to))));
            if (parsedTo == null) {
                throw new CommonAppException("Ошибка формата даты [to] = " + to);
            }
            final LocalDateTime dateTo = parsedTo.minusNanos(1);
            // State
            AcquiringOperationState parsedAcquiringOperationState;
            try {
                parsedAcquiringOperationState = AcquiringOperationState.valueOf(status);
            } catch (Exception e) {
                parsedAcquiringOperationState = null;
            }
            final AcquiringOperationState acquiringOperationState = parsedAcquiringOperationState;
            if (isAgent) {
                // Если у партенра роль "агент", то фильтруем по полю агента
                acquiringOperations = dataService.selectFromWhere(QAcquiringOperation.acquiringOperation, QAcquiringOperation.class, p -> p.type.in(Arrays.stream(AcquiringOperationType.values()).filter(t -> !REVERSE.equals(t)).toList())
                        .and(p.agent.id.eq(partnerId))
                        .and(p.createTime.after(dateFrom))
                        .and(p.createTime.before(dateTo))
                        .and(acquiringOperationState == null ? p.state.in(Arrays.stream(AcquiringOperationState.values()).toList()) : p.state.eq(acquiringOperationState))
                ).setHint("jakarta.persistence.fetchgraph", entityGraph).fetch();
            } else {
                acquiringOperations = dataService.selectFromWhere(QAcquiringOperation.acquiringOperation, QAcquiringOperation.class, p -> p.type.in(Arrays.stream(AcquiringOperationType.values()).filter(t -> !REVERSE.equals(t)).toList())
                        .and(p.partner.id.eq(partnerId))
                        .and(p.createTime.after(dateFrom))
                        .and(p.createTime.before(dateTo))
                        .and(acquiringOperationState == null ? p.state.in(Arrays.stream(AcquiringOperationState.values()).toList()) : p.state.eq(acquiringOperationState))
                ).setHint("jakarta.persistence.fetchgraph", entityGraph).fetch();
            }

        } else {
            if (orderId != null) {
                if (isAgent) {
                    acquiringOperations = dataService.selectFromWhere(QAcquiringOperation.acquiringOperation, QAcquiringOperation.class, p -> p.id.eq(orderId).and(p.agent.id.eq(partnerId))).setHint("jakarta.persistence.fetchgraph", entityGraph).fetch();
                } else {
                    acquiringOperations = dataService.selectFromWhere(QAcquiringOperation.acquiringOperation, QAcquiringOperation.class, p -> p.id.eq(orderId).and(p.partner.id.eq(partnerId))).setHint("jakarta.persistence.fetchgraph", entityGraph).fetch();
                }
            } else {
                if (isAgent) {
                    acquiringOperations = dataService.selectFromWhere(QAcquiringOperation.acquiringOperation, QAcquiringOperation.class, p -> p.reference.eq(shopOrderId).and(p.agent.id.eq(partnerId))).setHint("jakarta.persistence.fetchgraph", entityGraph).fetch();
                } else {
                    acquiringOperations = dataService.selectFromWhere(QAcquiringOperation.acquiringOperation, QAcquiringOperation.class, p -> p.reference.eq(shopOrderId).and(p.partner.id.eq(partnerId))).setHint("jakarta.persistence.fetchgraph", entityGraph).fetch();
                }
            }
        }
        return acquiringOperations.stream()
                .map(this::convertToNotification)
                .toList();
    }