Package com.skava.oms.helper
Class GetAllDashboardOrderDetailsServiceHelperImpl
java.lang.Object
com.skava.oms.service.EcommCoreServices
com.skava.oms.service.order.OrderHelperServices
com.skava.oms.helper.GetAllDashboardOrderDetailsServiceHelperImpl
-
Field Summary
Fields inherited from class com.skava.oms.service.order.OrderHelperServices
assembler, authHelper, authProps, collectionAssembler, collectionAttributeRepository, collectionByIdService, collectionRepository, getOrderLock, messageSender, mongoFactoryBean, omsEventProperties, orderDataRespository, orderHelper, orderRepository, orderSummaryServices, patchOrderSummaryServices, searchUtil, taskService, tracer
Fields inherited from class com.skava.oms.service.EcommCoreServices
context, messageSource, orderService, redissonClient, validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.mongodb.core.query.Criteria
equalCriteriaBuild
(SearchCriteria field, boolean useRegexForEqualFilter) This method is used to build equal search criteria.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 criteriaint
getCustomersCount
(GetAllOrderRequest orderRequest) This method is used to retrieve the unique number of customers whom placed orders.double
getEarningsTotal
(GetAllOrderRequest getAllOrderRequest) This method is used to get the total earning of orders based on given filters.getNotPaidAndNotShippedOrdersCount
(GetAllOrderRequest orderReportRequest) This method is used to retrieve the not paid and not shipped orders countlong
getSalesTotal
(GetAllOrderRequest orderReportRequest) This method is used to retrive total sales percentagelong
getTotalOrderCount
(GetAllOrderRequest getAllOrderRequest) This method is used to get the total counts of orders based on given filters.void
getUpdatedSearchCriteria
(List<SearchCriteria> search, List<SearchCriteria> updatedSearch) This method is used to update the search criteriaMethods inherited from class com.skava.oms.service.order.OrderHelperServices
getTraceIdHeaders, isCSRAdmin, setTraceId
Methods inherited from class com.skava.oms.service.EcommCoreServices
createOrderNotes, getItemIds, getItemIdsStr, updateOrderNotification
-
Constructor Details
-
GetAllDashboardOrderDetailsServiceHelperImpl
public GetAllDashboardOrderDetailsServiceHelperImpl()
-
-
Method Details
-
getTotalOrderCount
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
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
This method is used to retrive total sales percentage- Parameters:
orderReportRequest
- holds the order request object.- Returns:
- long value as sales total
-
getNotPaidAndNotShippedOrdersCount
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 objectupdatedSearch
- 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 idcollection
- holds the valid collection object- Returns:
- list of crtieria
-
getCustomersCount
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.
-