Subversion Repositories SmartDukaan

Rev

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

Rev 35309 Rev 35369
Line 1073... Line 1073...
1073
        List<FofoCatalogResponse> dealResponse = new ArrayList<>();
1073
        List<FofoCatalogResponse> dealResponse = new ArrayList<>();
1074
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
1074
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
1075
        FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
1075
        FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
1076
        sort = "w" + fs.getWarehouseId() + "_i desc";
1076
        sort = "w" + fs.getWarehouseId() + "_i desc";
1077
        dealResponse = this.getCatalogResponse(
1077
        dealResponse = this.getCatalogResponse(
1078
                commonSolrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, false, false), false, userInfo.getRetailerId());
1078
                commonSolrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, false, false,false), false, userInfo.getRetailerId());
1079
        return responseSender.ok(dealResponse);
1079
        return responseSender.ok(dealResponse);
1080
    }
1080
    }
1081
 
1081
 
1082
    private List<FofoCatalogResponse> getCatalogResponse(JSONArray docs, boolean hotDeal, int fofoId) throws ProfitMandiBusinessException {
1082
    private List<FofoCatalogResponse> getCatalogResponse(JSONArray docs, boolean hotDeal, int fofoId) throws ProfitMandiBusinessException {
1083
        Map<Integer, Integer> ourItemAvailabilityMap = null;
1083
        Map<Integer, Integer> ourItemAvailabilityMap = null;