Subversion Repositories SmartDukaan

Rev

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

Rev 33678 Rev 34024
Line 900... Line 900...
900
        List<FofoCatalogResponse> dealResponse = new ArrayList<>();
900
        List<FofoCatalogResponse> dealResponse = new ArrayList<>();
901
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
901
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
902
        FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
902
        FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
903
        sort = "w" + fs.getWarehouseId() + "_i desc";
903
        sort = "w" + fs.getWarehouseId() + "_i desc";
904
        dealResponse = this.getCatalogResponse(
904
        dealResponse = this.getCatalogResponse(
905
                commonSolrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, false), false, userInfo.getRetailerId());
905
                commonSolrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, false, false), false, userInfo.getRetailerId());
906
        return responseSender.ok(dealResponse);
906
        return responseSender.ok(dealResponse);
907
    }
907
    }
908
 
908
 
909
    private List<FofoCatalogResponse> getCatalogResponse(JSONArray docs, boolean hotDeal, int fofoId) throws ProfitMandiBusinessException {
909
    private List<FofoCatalogResponse> getCatalogResponse(JSONArray docs, boolean hotDeal, int fofoId) throws ProfitMandiBusinessException {
910
        Map<Integer, Integer> ourItemAvailabilityMap = null;
910
        Map<Integer, Integer> ourItemAvailabilityMap = null;