| Line 395... |
Line 395... |
| 395 |
//sb.append("Order exists updating info " + orderId+" "+subOrderId+"\n");
|
395 |
//sb.append("Order exists updating info " + orderId+" "+subOrderId+"\n");
|
| 396 |
}
|
396 |
}
|
| 397 |
else{
|
397 |
else{
|
| 398 |
logger.error("Flipkart order exists " + "id : " + orderId + " suborder id : " + subOrderId);
|
398 |
logger.error("Flipkart order exists " + "id : " + orderId + " suborder id : " + subOrderId);
|
| 399 |
//sb.append("Flipkart order exists " + orderId+" "+subOrderId+"\n");
|
399 |
//sb.append("Flipkart order exists " + orderId+" "+subOrderId+"\n");
|
| 400 |
duplicate_orders++;
|
- |
|
| 401 |
}
|
400 |
}
|
| - |
|
401 |
duplicate_orders++;
|
| 402 |
continue;
|
402 |
continue;
|
| 403 |
}
|
403 |
}
|
| 404 |
|
404 |
|
| 405 |
} catch (TTransportException e1) {
|
405 |
} catch (TTransportException e1) {
|
| 406 |
logger.error("Problem with Transaction service " , e1);
|
406 |
logger.error("Problem with Transaction service " , e1);
|
| Line 666... |
Line 666... |
| 666 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
666 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 667 |
Calendar cal=GregorianCalendar.getInstance();
|
667 |
Calendar cal=GregorianCalendar.getInstance();
|
| 668 |
String emailFromAddress = "build@shop2020.in";
|
668 |
String emailFromAddress = "build@shop2020.in";
|
| 669 |
String password = "cafe@nes";
|
669 |
String password = "cafe@nes";
|
| 670 |
GmailUtils mailer = new GmailUtils();
|
670 |
GmailUtils mailer = new GmailUtils();
|
| 671 |
//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
671 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
| 672 |
String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
672 |
/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 673 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
673 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 674 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
|
674 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
|
| - |
|
675 |
*/
|
| 675 |
try {
|
676 |
try {
|
| 676 |
logger.info("Before Sending Emails");
|
677 |
logger.info("Before Sending Emails");
|
| 677 |
String ordersProcessingStatus = "Total Orders : " + total_orders +"\n"+
|
678 |
String ordersProcessingStatus = "Total Orders : " + total_orders +"\n"+
|
| 678 |
"Processed Orders : " + orders_processed +"\n"+
|
679 |
"Processed Orders : " + orders_processed +"\n"+
|
| - |
|
680 |
"Existing Orders : " + duplicate_orders +"\n"+
|
| 679 |
"Failed Orders :" + (total_orders - orders_processed - duplicate_orders);
|
681 |
"Failed Orders :" + (total_orders - orders_processed - duplicate_orders);
|
| 680 |
|
682 |
|
| 681 |
if(sb.toString().equalsIgnoreCase("")){
|
683 |
if(sb.toString().equalsIgnoreCase("")){
|
| 682 |
if(orders_processed!=0){
|
684 |
if(orders_processed!=0){
|
| 683 |
String emailSubjectTxt = orders_processed + " Flipkart " + order_string + " Created "+sdf.format(cal.getTime());
|
685 |
String emailSubjectTxt = orders_processed + " Flipkart " + order_string + " Created "+sdf.format(cal.getTime());
|