Subversion Repositories SmartDukaan

Rev

Rev 624 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 624 Rev 637
Line 51... Line 51...
51
		}
51
		}
52
	}
52
	}
53
    
53
    
54
    // GET /index
54
    // GET /index
55
    public HttpHeaders index() throws Exception {
55
    public HttpHeaders index() throws Exception {
-
 
56
    	long categoryId = Long.parseLong(request.getParameter("categoryid"));
56
    	in.shop2020.model.v1.catalog.InventoryService.Client client = catalogClientService.getClient();
57
    	in.shop2020.model.v1.catalog.InventoryService.Client client = catalogClientService.getClient();
57
    	this.setTotalItems(client.getBestSellersCount());
-
 
58
    	this.items = client.getBestSellersCatalogIds(beginIndex, windowSize, -1);
58
    	this.items = client.getBestSellersCatalogIds(beginIndex, windowSize, categoryId);
59
    	return new DefaultHttpHeaders("index");
59
    	return new DefaultHttpHeaders("index");
60
    }
60
    }
61
 
61
 
62
    // GET /show
62
    // GET /show
63
    public HttpHeaders show() {
63
    public HttpHeaders show() {