Subversion Repositories SmartDukaan

Rev

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

Rev 23568 Rev 23781
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.apache.logging.log4j.Logger;
-
 
12
import org.apache.logging.log4j.LogManager;
11
import org.apache.logging.log4j.LogManager;
-
 
12
import org.apache.logging.log4j.Logger;
13
import org.springframework.beans.factory.annotation.Autowired;
13
import org.springframework.beans.factory.annotation.Autowired;
-
 
14
import org.springframework.beans.factory.annotation.Qualifier;
14
import org.springframework.stereotype.Component;
15
import org.springframework.stereotype.Component;
15
 
16
 
16
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
17
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
17
import com.spice.profitmandi.common.model.PriceModel;
18
import com.spice.profitmandi.common.model.PriceModel;
18
import com.spice.profitmandi.common.model.ProfitMandiConstants;
19
import com.spice.profitmandi.common.model.ProfitMandiConstants;
Line 48... Line 49...
48
	
49
	
49
	@Autowired
50
	@Autowired
50
	private GadgetCopsInsuranceCalcRepository gadgetCopsInsuranceCalcRepository;
51
	private GadgetCopsInsuranceCalcRepository gadgetCopsInsuranceCalcRepository;
51
	
52
	
52
	@Autowired
53
	@Autowired
-
 
54
	@Qualifier("fofoInventoryItemRepository")
53
	private InventoryItemRepository inventoryItemRepository;
55
	private InventoryItemRepository inventoryItemRepository;
54
	
56
	
55
	private static final Logger LOGGER = LogManager.getLogger(PricingServiceImpl.class);
57
	private static final Logger LOGGER = LogManager.getLogger(PricingServiceImpl.class);
56
	
58
	
57
	@Override
59
	@Override
Line 161... Line 163...
161
						pricesMap.put(price, gadgetCopsInsuranceCalc);
163
						pricesMap.put(price, gadgetCopsInsuranceCalc);
162
					}
164
					}
163
				}
165
				}
164
			}
166
			}
165
		}else{
167
		}else{
166
			throw new ProfitMandiBusinessException(ProfitMandiConstants.PROVIDER_NAME, providerName, "");
168
			throw new ProfitMandiBusinessException(ProfitMandiConstants.PROVIDER_NAME, providerName, "INSRNC_PRVDR_1000");
167
		}
169
		}
168
		return pricesMap;
170
		return pricesMap;
169
	}
171
	}
170
	
172
	
171
	@Override
173
	@Override