Class GetAllDashboardOrderDetailsServiceHelperImpl

java.lang.Object
com.skava.oms.service.EcommCoreServices
com.skava.oms.service.order.OrderHelperServices
com.skava.oms.helper.GetAllDashboardOrderDetailsServiceHelperImpl

@Component public class GetAllDashboardOrderDetailsServiceHelperImpl extends OrderHelperServices
  • Constructor Details

    • GetAllDashboardOrderDetailsServiceHelperImpl

      public GetAllDashboardOrderDetailsServiceHelperImpl()
  • Method Details

    • getTotalOrderCount

      public long getTotalOrderCount(GetAllOrderRequest getAllOrderRequest)
      This method is used to get the total counts of orders based on given filters.
      Parameters:
      getAllOrderRequest - holds the GetAllOrderRequest
      Returns:
      count of order
    • getEarningsTotal

      public double getEarningsTotal(GetAllOrderRequest getAllOrderRequest)
      This method is used to get the total earning of orders based on given filters.
      Parameters:
      getAllOrderRequest - holds the GetAllOrderRequest
      Returns:
      double value of total Earning.
    • getSalesTotal

      public long getSalesTotal(GetAllOrderRequest orderReportRequest)
      This method is used to retrive total sales percentage
      Parameters:
      orderReportRequest - holds the order request object.
      Returns:
      long value as sales total
    • getNotPaidAndNotShippedOrdersCount

      public String getNotPaidAndNotShippedOrdersCount(GetAllOrderRequest orderReportRequest)
      This method is used to retrieve the not paid and not shipped orders count
      Parameters:
      orderReportRequest - holds the All Order Request object.
      Returns:
      long value as not Paid and not Shipped order count
    • equalCriteriaBuild

      public org.springframework.data.mongodb.core.query.Criteria equalCriteriaBuild(SearchCriteria field, boolean useRegexForEqualFilter)
      This method is used to build equal search criteria.
      Parameters:
      field - holds the valid searchCriteria Object.
      useRegexForEqualFilter - is represent the boolean value.
      Returns:
      Criteria object.
    • getUpdatedSearchCriteria

      public void getUpdatedSearchCriteria(List<SearchCriteria> search, List<SearchCriteria> updatedSearch)
      This method is used to update the search criteria
      Parameters:
      search - holds the list of search criteria object
      updatedSearch - holds the list of update search criteria
    • getAllCriteriaList

      public List<org.springframework.data.mongodb.core.query.Criteria> getAllCriteriaList(GetAllOrderRequest orderReportRequest, long collId, OmsServiceEntityResponse<CollectionDTO> collection, Boolean isToFilterStatus)
      This method is used to construct all the criteria
      Parameters:
      orderReportRequest - holds the valid GetAllOrderRequest object.
      collId - holds the valid collection id
      collection - holds the valid collection object
      Returns:
      list of crtieria
    • getCustomersCount

      public int getCustomersCount(GetAllOrderRequest orderRequest)
      This method is used to retrieve the unique number of customers whom placed orders.
      Parameters:
      orderRequest - holds the All Order Request object.
      Returns:
      int value number of unique customers.