| Line 724... |
Line 724... |
| 724 |
.sorted(Comparator.comparing(FofoAvailabilityInfo::getAvailability).reversed())
|
724 |
.sorted(Comparator.comparing(FofoAvailabilityInfo::getAvailability).reversed())
|
| 725 |
.collect(Collectors.toList());
|
725 |
.collect(Collectors.toList());
|
| 726 |
fofoCatalogResponse.setItems(availabilityList);
|
726 |
fofoCatalogResponse.setItems(availabilityList);
|
| 727 |
if (priceCircularItemModelMap.containsKey(fofoCatalogResponse.getCatalogId())) {
|
727 |
if (priceCircularItemModelMap.containsKey(fofoCatalogResponse.getCatalogId())) {
|
| 728 |
PriceCircularItemModel priceCircularItemModel = priceCircularItemModelMap.get(fofoCatalogResponse.getCatalogId());
|
728 |
PriceCircularItemModel priceCircularItemModel = priceCircularItemModelMap.get(fofoCatalogResponse.getCatalogId());
|
| - |
|
729 |
if (priceCircularItemModel.getSlabPayouts() != null) {
|
| 729 |
List<CreateOfferRequest> schemeOffers = new ArrayList<>();
|
730 |
List<CreateOfferRequest> schemeOffers = new ArrayList<>();
|
| 730 |
/*for (int j = 0; j < priceCircularItemModel.getSlabPayouts().size(); j++) {
|
731 |
for (int j = 0; j < priceCircularItemModel.getSlabPayouts().size(); j++) {
|
| 731 |
if(priceCircularItemModel.getSlabPayouts().get(i) != null) {
|
732 |
if (priceCircularItemModel.getSlabPayouts().get(j) != null) {
|
| 732 |
schemeOffers.add(allSchemOffers.get(i));
|
733 |
schemeOffers.add(allSchemOffers.get(j));
|
| - |
|
734 |
} else {
|
| - |
|
735 |
priceCircularItemModel.getSlabPayouts().remove(j);
|
| - |
|
736 |
}
|
| 733 |
}
|
737 |
}
|
| 734 |
}*/
|
- |
|
| 735 |
fofoCatalogResponse.setSchemeOffers(schemeOffers);
|
738 |
fofoCatalogResponse.setSchemeOffers(schemeOffers);
|
| - |
|
739 |
}
|
| 736 |
fofoCatalogResponse.setPriceCircularItemModel(priceCircularItemModel);
|
740 |
fofoCatalogResponse.setPriceCircularItemModel(priceCircularItemModel);
|
| 737 |
|
- |
|
| 738 |
}
|
741 |
}
|
| 739 |
dealResponse.add(fofoCatalogResponse);
|
742 |
dealResponse.add(fofoCatalogResponse);
|
| 740 |
}
|
743 |
}
|
| 741 |
}
|
744 |
}
|
| 742 |
return dealResponse;
|
745 |
return dealResponse;
|