| Line 645... |
Line 645... |
| 645 |
logger.info("VendorItemPricing updated. " + tVendorPricing.toString());
|
645 |
logger.info("VendorItemPricing updated. " + tVendorPricing.toString());
|
| 646 |
sb.append("[VId:" + v.getVendorId() + ",MOP=" + v.getMop() + ",TP=" + v.getTransferPrice() + ",DP=" + v.getDealerPrice() + "], ");
|
646 |
sb.append("[VId:" + v.getVendorId() + ",MOP=" + v.getMop() + ",TP=" + v.getTransferPrice() + ",DP=" + v.getDealerPrice() + "], ");
|
| 647 |
}
|
647 |
}
|
| 648 |
}
|
648 |
}
|
| 649 |
|
649 |
|
| - |
|
650 |
Map<String, VendorItemMapping> vendorMappings = item.getVendorKeysMap();
|
| - |
|
651 |
if(vendorMappings != null && !vendorMappings.isEmpty()) {
|
| - |
|
652 |
in.shop2020.model.v1.catalog.VendorItemMapping tVendorMapping;
|
| - |
|
653 |
for(VendorItemMapping vendorItemMapping : vendorMappings.values()) {
|
| - |
|
654 |
tVendorMapping = new in.shop2020.model.v1.catalog.VendorItemMapping();
|
| - |
|
655 |
tVendorMapping.setVendorId(vendorItemMapping.getVendorId());
|
| - |
|
656 |
tVendorMapping.setItemId(item.getId());
|
| - |
|
657 |
tVendorMapping.setItemKey(vendorItemMapping.getItemKey());
|
| - |
|
658 |
catalogClient_Prod.addVendorItemMapping(vendorItemMapping.getItemKey(), tVendorMapping);
|
| - |
|
659 |
logger.info("VendorItemMapping updated. " + tVendorMapping.toString());
|
| - |
|
660 |
sb.append("[VId:" + vendorItemMapping.getVendorId() + ",ItemKey=" + vendorItemMapping.getItemKey() + "], ");
|
| - |
|
661 |
}
|
| - |
|
662 |
}
|
| - |
|
663 |
|
| 650 |
Map<Long, SourcePricings> sourcePricings = item.getSourcePricesMap();
|
664 |
Map<Long, SourcePricings> sourcePricings = item.getSourcePricesMap();
|
| 651 |
if(sourcePricings != null && !sourcePricings.isEmpty()){
|
665 |
if(sourcePricings != null && !sourcePricings.isEmpty()){
|
| 652 |
in.shop2020.model.v1.catalog.SourceItemPricing tSourcePricing;
|
666 |
in.shop2020.model.v1.catalog.SourceItemPricing tSourcePricing;
|
| 653 |
for(SourcePricings s : sourcePricings.values()){
|
667 |
for(SourcePricings s : sourcePricings.values()){
|
| 654 |
tSourcePricing = new in.shop2020.model.v1.catalog.SourceItemPricing();
|
668 |
tSourcePricing = new in.shop2020.model.v1.catalog.SourceItemPricing();
|