Subversion Repositories SmartDukaan

Rev

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

Rev 33172 Rev 33244
Line 151... Line 151...
151
        });
151
        });
152
        return itemAvailabilityMap;
152
        return itemAvailabilityMap;
153
    }
153
    }
154
 
154
 
155
    // As of now it only works for Fofo Partners need to be refactored later
155
    // As of now it only works for Fofo Partners need to be refactored later
156
    private Map<Integer, Integer> getMinBuyQtyMap(User user, Set<Integer> itemIds) {
156
    private Map<Integer, Integer> getMinBuyQtyMap(User user, Set<Integer> itemIds) throws ProfitMandiBusinessException {
157
        List<Item> items = itemRepository.selectByIds(itemIds);
157
        List<Item> items = itemRepository.selectByIds(itemIds);
158
        return items.stream().collect(Collectors.toMap(x -> x.getId(), x -> x.getCategoryId() == 10020 ? 1 : 10));
158
        return items.stream().collect(Collectors.toMap(x -> x.getId(), x -> x.getCategoryId() == 10020 ? 1 : 10));
159
    }
159
    }
160
 
160
 
161
    // As of now it only works for Fofo Partners need to be refactored later
161
    // As of now it only works for Fofo Partners need to be refactored later