| Line 425... |
Line 425... |
| 425 |
logger.error("Error in updating Shipping or Delivery Time for suborderid " + subOrderId);
|
425 |
logger.error("Error in updating Shipping or Delivery Time for suborderid " + subOrderId);
|
| 426 |
sb.append(orderId + " "+ subOrderId + " Could not update delivery time" + " " + "\n");
|
426 |
sb.append(orderId + " "+ subOrderId + " Could not update delivery time" + " " + "\n");
|
| 427 |
exit = true;
|
427 |
exit = true;
|
| 428 |
continue;
|
428 |
continue;
|
| 429 |
}
|
429 |
}
|
| 430 |
//SnapdealItem snapdealItem = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient().getSnapdealItem(sku);
|
430 |
SnapdealItem snapdealItem = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient().getSnapdealItem(sku);
|
| 431 |
SnapdealItem snapdealItem = new CatalogClient().getClient().getSnapdealItem(sku);
|
- |
|
| 432 |
inventoryClient = new InventoryClient().getClient();
|
431 |
inventoryClient = new InventoryClient().getClient();
|
| 433 |
try {
|
432 |
try {
|
| 434 |
logger.info("Snapdeal Item id is " + snapdealItem.getItem_id());
|
433 |
logger.info("Snapdeal Item id is " + snapdealItem.getItem_id());
|
| 435 |
if(snapdealItem.getItem_id()!=0 && snapdealItem.getWarehouseId()!=0) {
|
434 |
if(snapdealItem.getItem_id()!=0 && snapdealItem.getWarehouseId()!=0) {
|
| 436 |
logger.info("SnapdealItem Warehouse Id " + snapdealItem.getWarehouseId());
|
435 |
logger.info("SnapdealItem Warehouse Id " + snapdealItem.getWarehouseId());
|
| Line 631... |
Line 630... |
| 631 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
630 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 632 |
Calendar cal=GregorianCalendar.getInstance();
|
631 |
Calendar cal=GregorianCalendar.getInstance();
|
| 633 |
String emailFromAddress = "build@shop2020.in";
|
632 |
String emailFromAddress = "build@shop2020.in";
|
| 634 |
String password = "cafe@nes";
|
633 |
String password = "cafe@nes";
|
| 635 |
GmailUtils mailer = new GmailUtils();
|
634 |
GmailUtils mailer = new GmailUtils();
|
| 636 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
635 |
//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
| 637 |
//String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
636 |
String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 638 |
// "khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
637 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 639 |
// "yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
638 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 640 |
try {
|
639 |
try {
|
| 641 |
logger.info("Before Sending Emails");
|
640 |
logger.info("Before Sending Emails");
|
| 642 |
|
641 |
|
| 643 |
if(sb.toString().equalsIgnoreCase("")){
|
642 |
if(sb.toString().equalsIgnoreCase("")){
|
| 644 |
if(orders_processed!=0){
|
643 |
if(orders_processed!=0){
|