Subversion Repositories SmartDukaan

Rev

Rev 32495 | Rev 32597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32495 Rev 32512
Line 829... Line 829...
829
        return "wallet-history";
829
        return "wallet-history";
830
 
830
 
831
    }
831
    }
832
 
832
 
833
    @RequestMapping(value = "/getWalletHistoryByPartner", method = RequestMethod.GET)
833
    @RequestMapping(value = "/getWalletHistoryByPartner", method = RequestMethod.GET)
834
    public String getWalletHistoryByPartner(HttpServletRequest request, int fofoId, @RequestParam(name = "referenceType", required = false) WalletReferenceType referenceType, @RequestParam(name = "offset", required = false, defaultValue = "0") int offset, @RequestParam(name = "limit", required = false, defaultValue = "30") int limit, Model model) throws Exception {
834
    public String getWalletHistoryByPartner(HttpServletRequest request, int fofoId, @RequestParam(name = "referenceType", required = false) WalletReferenceType referenceType, @RequestParam(name = "offset", required = false, defaultValue = "0") int offset, @RequestParam(name = "limit", required = false, defaultValue = "100") int limit, Model model) throws Exception {
835
 
835
 
836
        UserWallet userWallet = userWalletRepository.selectByRetailerId(fofoId);
836
        UserWallet userWallet = userWalletRepository.selectByRetailerId(fofoId);
837
        List<UserWalletHistory> userWalletHistory = userWalletHistoryRepository.selectPaginatedByWalletIdReferenceType(userWallet.getId(), referenceType, SortOrder.DESCENDING, offset, limit);
837
        List<UserWalletHistory> userWalletHistory = userWalletHistoryRepository.selectPaginatedByWalletIdReferenceType(userWallet.getId(), referenceType, SortOrder.DESCENDING, offset, limit);
838
 
838
 
839
        CustomRetailer customretailer = retailerService.getFofoRetailer(fofoId);
839
        CustomRetailer customretailer = retailerService.getFofoRetailer(fofoId);