Пример #1
0
  public Map<Object, Object> getDetails(
      ListFilterCriteria filterCriteria, Date fromDate, Date toDate) {
    log.debug(
        "FailedTransactions.getDetails(): Date Range = [{}] - [{}]",
        DateTimeUtil.formatDate(fromDate),
        DateTimeUtil.formatDate(toDate));

    int startingFrom = (filterCriteria.getP() - 1) * filterCriteria.getItemsPerPage();
    Map<Object, Object> orderListAndTotalCount =
        paymentDao.getFailedTransactionsAndTotalCount(
            startingFrom, filterCriteria, fromDate, toDate);
    List<Order> ordersList = (List<Order>) orderListAndTotalCount.get("list");
    Map<Object, Object> dataForView =
        PaginationUtil.generateDataForView(
            orderListAndTotalCount,
            filterCriteria.getItemsPerPage(),
            filterCriteria.getP(),
            startingFrom,
            BASE_URL_FOR_PAGINATION,
            ordersList.size());
    Map<String, String> searchFieldMap = new HashMap<String, String>();
    searchFieldMap.put("Transaction Id", "bluestoneTxnId");
    searchFieldMap.put("Payment Gateway", "paymentGateway");
    searchFieldMap.put("Customer Name", "subPayment.masterPayment.cart.customer.userName");
    searchFieldMap.put("Customer Email", "subPayment.masterPayment.cart.customer.email");

    dataForView.put("searchFieldMap", searchFieldMap);

    return dataForView;
  }
Пример #2
0
 TrackingData(HttpServletRequest request) {
   source = request.getParameter("utm_source");
   gclid = request.getParameter("gclid");
   httpReferrer = request.getHeader("referer");
   requestUrl = request.getRequestURL().toString();
   timeStamp = DateTimeUtil.formatDate(DateTimeUtil.getDate(), "yyyyMMddHHmmss");
   if (gclid != null) {
     source = "Google";
   }
 }