| Line 1041... |
Line 1041... |
| 1041 |
|
1041 |
|
| 1042 |
@Autowired
|
1042 |
@Autowired
|
| 1043 |
PriceDropIMEIRepository priceDropIMEIRepository;
|
1043 |
PriceDropIMEIRepository priceDropIMEIRepository;
|
| 1044 |
|
1044 |
|
| 1045 |
public void fixPriceDrop() throws ProfitMandiBusinessException {
|
1045 |
public void fixPriceDrop() throws ProfitMandiBusinessException {
|
| 1046 |
List<Integer> priceDropIds = Arrays.asList(609, 610, 611, 648, 649, 650, 651, 653, 667, 691, 692, 693, 695, 696, 697, 698);
|
- |
|
| 1047 |
//List<Integer> priceDropIds = Arrays.asList(609, 610, 611, 648, 649, 650, 651, 653, 667, 691, 692, 693, 695, 696, 697, 698);
|
1046 |
//List<Integer> priceDropIds = Arrays.asList(609, 610, 611, 648, 649, 650, 651, 653, 667, 691, 692, 693, 695, 696, 697, 698);
|
| - |
|
1047 |
List<Integer> priceDropIds = Arrays.asList(609, 610, 611, 648, 649, 650, 651, 653, 667, 691, 692, 693, 695, 696, 697, 698, 645, 688);
|
| 1048 |
for (int priceDropId : priceDropIds) {
|
1048 |
for (int priceDropId : priceDropIds) {
|
| 1049 |
PriceDrop pd = priceDropRepository.selectById(priceDropId);
|
1049 |
PriceDrop pd = priceDropRepository.selectById(priceDropId);
|
| 1050 |
LOGGER.info("Price Drop ---- {}", pd);
|
1050 |
LOGGER.info("Price Drop ---- {}", pd);
|
| 1051 |
List<ImeiDropSummaryModel> actualList = priceDropService.getAllSerialNumbersByAffectedDate(pd.getAffectedOn(), pd.getCatalogItemId());
|
1051 |
List<ImeiDropSummaryModel> actualList = priceDropService.getAllSerialNumbersByAffectedDate(pd.getAffectedOn(), pd.getCatalogItemId());
|
| 1052 |
Map<String, ImeiDropSummaryModel> actualMap = actualList.stream().collect(Collectors.toMap(x -> x.getSerialNumber(), x -> x));
|
1052 |
Map<String, ImeiDropSummaryModel> actualMap = actualList.stream().collect(Collectors.toMap(x -> x.getSerialNumber(), x -> x));
|