src/main/java/org/edgegallery/appstore/application/inner/OrderService.java
public List<OrderDto> queryOrders(Map<String, Object> params, String token) {
        List<Order> orders = orderRepository.queryOrders(params);
        List<OrderDto> dtoList = new ArrayList<>();
        for (Order order : orders) {
            // Timer will update status every 15 min.
            if (order.getStatus() == EnumOrderStatus.ACTIVATING) {
                updateOrderStatus(token, order);
            }
            OrderDto dto = new OrderDto(order);
            dtoList.add(dto);
        }
        return dtoList;
    }
/**
     * query order list.
     *
     * @param params query condition.
     */
query order list.
@param params query condition.
query order list . @param params query condition .
public List<OrderDto> queryOrders(Map<String, Object> params, String token) {
        List<Order> orders = orderRepository.queryOrders(params);
        List<OrderDto> dtoList = new ArrayList<>();
        for (Order order : orders) {
            if (order.getStatus() == EnumOrderStatus.ACTIVATING) {
                updateOrderStatus(token, order);
            }
            OrderDto dto = new OrderDto(order);
            dtoList.add(dto);
        }
        return dtoList;
    }
public List < OrderDto > queryOrders ( Map < String , Object > params , String token ) { List < Order > orders = orderRepository . queryOrders ( params ) ; List < OrderDto > dtoList = new ArrayList < > ( ) ; for ( Order order : orders ) { if ( order . getStatus ( ) == EnumOrderStatus . ACTIVATING ) { updateOrderStatus ( token , order ) ; } OrderDto dto = new OrderDto ( order ) ; dtoList . add ( dto ) ; } return dtoList ; }
query order list.
query order list .
// Timer will update status every 15 min.