Subversion Repositories SmartDukaan

Rev

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

Rev 37144 Rev 37298
Line 1055... Line 1055...
1055
    }
1055
    }
1056
 
1056
 
1057
    @RequestMapping(value = "/store/partnerStock", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
1057
    @RequestMapping(value = "/store/partnerStock", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
1058
    public ResponseEntity<?> partnerStock(HttpServletRequest request, @RequestParam(required = false, defaultValue = "3") String categoryId, @RequestParam int offset,
1058
    public ResponseEntity<?> partnerStock(HttpServletRequest request, @RequestParam(required = false, defaultValue = "3") String categoryId, @RequestParam int offset,
1059
      @RequestParam int limit, @RequestParam(required = false) String sort, @RequestParam(required = false) String brand,
1059
      @RequestParam int limit, @RequestParam(required = false) String sort, @RequestParam(required = false) String brand,
1060
      @RequestParam(value = "subCategoryId", required = false) int subCategoryId, @RequestParam(required = false) String queryTerm,
1060
      @RequestParam(value = "subCategoryId", required = false, defaultValue = "0") int subCategoryId, @RequestParam(required = false) String queryTerm,
1061
      @RequestParam(required = false) String listing, @RequestParam(required = false, defaultValue = "true") boolean partnerStockOnly) throws Throwable {
1061
      @RequestParam(required = false) String listing, @RequestParam(required = false, defaultValue = "true") boolean partnerStockOnly) throws Throwable {
1062
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
1062
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
1063
        int dbCategoryId = mapFrontendCategoryToDb(categoryId);
1063
        int dbCategoryId = mapFrontendCategoryToDb(categoryId);
1064
        List<FofoCatalogResponse> dealResponse = getCatalogResponseFromDb(
1064
        List<FofoCatalogResponse> dealResponse = getCatalogResponseFromDb(
1065
                dbCategoryId, userInfo.getRetailerId(), offset, limit, brand, queryTerm, subCategoryId, partnerStockOnly);
1065
                dbCategoryId, userInfo.getRetailerId(), offset, limit, brand, queryTerm, subCategoryId, partnerStockOnly);