| Line 6... |
Line 6... |
| 6 |
import java.util.List;
|
6 |
import java.util.List;
|
| 7 |
import java.util.Map;
|
7 |
import java.util.Map;
|
| 8 |
import java.util.Set;
|
8 |
import java.util.Set;
|
| 9 |
|
9 |
|
| 10 |
import org.apache.commons.collections.CollectionUtils;
|
10 |
import org.apache.commons.collections.CollectionUtils;
|
| 11 |
import org.slf4j.Logger;
|
11 |
import org.apache.logging.log4j.Logger;
|
| 12 |
import org.slf4j.LoggerFactory;
|
12 |
import org.apache.logging.log4j.LogManager;
|
| 13 |
import org.springframework.beans.factory.annotation.Autowired;
|
13 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 14 |
import org.springframework.stereotype.Component;
|
14 |
import org.springframework.stereotype.Component;
|
| 15 |
|
15 |
|
| 16 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
16 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 17 |
import com.spice.profitmandi.common.model.PriceModel;
|
17 |
import com.spice.profitmandi.common.model.PriceModel;
|
| Line 50... |
Line 50... |
| 50 |
private GadgetCopsInsuranceCalcRepository gadgetCopsInsuranceCalcRepository;
|
50 |
private GadgetCopsInsuranceCalcRepository gadgetCopsInsuranceCalcRepository;
|
| 51 |
|
51 |
|
| 52 |
@Autowired
|
52 |
@Autowired
|
| 53 |
private InventoryItemRepository inventoryItemRepository;
|
53 |
private InventoryItemRepository inventoryItemRepository;
|
| 54 |
|
54 |
|
| 55 |
private static final Logger LOGGER = LoggerFactory.getLogger(PricingServiceImpl.class);
|
55 |
private static final Logger LOGGER = LogManager.getLogger(PricingServiceImpl.class);
|
| 56 |
|
56 |
|
| 57 |
@Override
|
57 |
@Override
|
| 58 |
public Map<Integer, Float> getPrices(Set<Integer> itemIds, int retailerId) {
|
58 |
public Map<Integer, Float> getPrices(Set<Integer> itemIds, int retailerId) {
|
| 59 |
Map<Integer, Float> itemIdPrice = this.preparePriceDefaultValues(itemIds);
|
59 |
Map<Integer, Float> itemIdPrice = this.preparePriceDefaultValues(itemIds);
|
| 60 |
List<TagListing> tagListings = this.getTagListing(itemIds, retailerId);
|
60 |
List<TagListing> tagListings = this.getTagListing(itemIds, retailerId);
|