| Line 63... |
Line 63... |
| 63 |
import com.spice.profitmandi.service.inventory.FofoAvailabilityInfo;
|
63 |
import com.spice.profitmandi.service.inventory.FofoAvailabilityInfo;
|
| 64 |
import com.spice.profitmandi.service.inventory.FofoCatalogResponse;
|
64 |
import com.spice.profitmandi.service.inventory.FofoCatalogResponse;
|
| 65 |
import com.spice.profitmandi.service.inventory.ItemBucketService;
|
65 |
import com.spice.profitmandi.service.inventory.ItemBucketService;
|
| 66 |
import com.spice.profitmandi.service.inventory.ItemQuantityPojo;
|
66 |
import com.spice.profitmandi.service.inventory.ItemQuantityPojo;
|
| 67 |
import com.spice.profitmandi.service.pricing.PricingService;
|
67 |
import com.spice.profitmandi.service.pricing.PricingService;
|
| - |
|
68 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
| 68 |
import com.spice.profitmandi.web.res.DealBrands;
|
69 |
import com.spice.profitmandi.web.res.DealBrands;
|
| 69 |
import com.spice.profitmandi.web.res.DealObjectResponse;
|
70 |
import com.spice.profitmandi.web.res.DealObjectResponse;
|
| 70 |
import com.spice.profitmandi.web.res.DealsResponse;
|
71 |
import com.spice.profitmandi.web.res.DealsResponse;
|
| 71 |
|
72 |
|
| 72 |
import io.swagger.annotations.ApiImplicitParam;
|
73 |
import io.swagger.annotations.ApiImplicitParam;
|
| Line 94... |
Line 95... |
| 94 |
|
95 |
|
| 95 |
@Autowired
|
96 |
@Autowired
|
| 96 |
private CategoryRepository categoryRepository;
|
97 |
private CategoryRepository categoryRepository;
|
| 97 |
|
98 |
|
| 98 |
@Autowired
|
99 |
@Autowired
|
| - |
|
100 |
private SchemeService schemeService;
|
| - |
|
101 |
|
| - |
|
102 |
@Autowired
|
| 99 |
private Mongo mongoClient;
|
103 |
private Mongo mongoClient;
|
| 100 |
|
104 |
|
| 101 |
@Autowired
|
105 |
@Autowired
|
| 102 |
private ItemBucketService itemBucketService;
|
106 |
private ItemBucketService itemBucketService;
|
| 103 |
|
107 |
|
| Line 635... |
Line 639... |
| 635 |
fdi.setMrp((double)tl.getMrp());
|
639 |
fdi.setMrp((double)tl.getMrp());
|
| 636 |
fdi.setMop((float) childItem.getDouble("mop_f"));
|
640 |
fdi.setMop((float) childItem.getDouble("mop_f"));
|
| 637 |
fdi.setColor(childItem.has("color_s") ? childItem.getString("color_s") : "");
|
641 |
fdi.setColor(childItem.has("color_s") ? childItem.getString("color_s") : "");
|
| 638 |
fdi.setTagId(childItem.getInt("tagId_i"));
|
642 |
fdi.setTagId(childItem.getInt("tagId_i"));
|
| 639 |
fdi.setItem_id(itemId);
|
643 |
fdi.setItem_id(itemId);
|
| - |
|
644 |
fdi.setCashback(schemeService.getItemSchemeCashBack().get(itemId));
|
| 640 |
Item item = itemRepository.selectById(itemId);
|
645 |
Item item = itemRepository.selectById(itemId);
|
| 641 |
// In case its tampered glass moq should be 5
|
646 |
// In case its tampered glass moq should be 5
|
| 642 |
if (item.getCategoryId() == 10020) {
|
647 |
if (item.getCategoryId() == 10020) {
|
| 643 |
fdi.setMinBuyQuantity(10);
|
648 |
fdi.setMinBuyQuantity(10);
|
| 644 |
} else {
|
649 |
} else {
|