| Line 8... |
Line 8... |
| 8 |
|
8 |
|
| 9 |
import java.io.BufferedReader;
|
9 |
import java.io.BufferedReader;
|
| 10 |
import java.io.InputStreamReader;
|
10 |
import java.io.InputStreamReader;
|
| 11 |
import java.text.SimpleDateFormat;
|
11 |
import java.text.SimpleDateFormat;
|
| 12 |
import java.util.ArrayList;
|
12 |
import java.util.ArrayList;
|
| - |
|
13 |
import java.util.Calendar;
|
| 13 |
import java.util.Date;
|
14 |
import java.util.Date;
|
| 14 |
import java.util.List;
|
15 |
import java.util.List;
|
| 15 |
|
16 |
|
| 16 |
import javax.mail.MessagingException;
|
17 |
import javax.mail.MessagingException;
|
| 17 |
|
18 |
|
| Line 50... |
Line 51... |
| 50 |
SimpleDateFormat gotFlipkartDateFormat = new SimpleDateFormat("MMM dd, yyyy");
|
51 |
SimpleDateFormat gotFlipkartDateFormat = new SimpleDateFormat("MMM dd, yyyy");
|
| 51 |
//SimpleDateFormat createDateFormatter = new SimpleDateFormat("MMM dd, yyyy hh:mm aaa");
|
52 |
//SimpleDateFormat createDateFormatter = new SimpleDateFormat("MMM dd, yyyy hh:mm aaa");
|
| 52 |
SimpleDateFormat ourDBDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
53 |
SimpleDateFormat ourDBDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| 53 |
long minCreationDate = 0l;
|
54 |
long minCreationDate = 0l;
|
| 54 |
try {
|
55 |
try {
|
| 55 |
minCreationDate = /*1386432631000l;*/new TransactionClient().getClient().getMinCreatedTimeStampUndeliveredOrdersForSource(OrderSource.FLIPKART.getValue());
|
56 |
/*minCreationDate = 1386432631000l;new TransactionClient().getClient().getMinCreatedTimeStampUndeliveredOrdersForSource(OrderSource.FLIPKART.getValue());*/
|
| - |
|
57 |
Calendar cal = Calendar.getInstance();
|
| - |
|
58 |
cal.add(Calendar.DAY_OF_MONTH, -60);
|
| - |
|
59 |
minCreationDate = cal.getTimeInMillis();
|
| 56 |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
|
60 |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
|
| 57 |
nameValuePairs.add(new BasicNameValuePair("authName",
|
61 |
nameValuePairs.add(new BasicNameValuePair("authName",
|
| 58 |
"flipkart"));
|
62 |
"flipkart"));
|
| 59 |
nameValuePairs.add(new BasicNameValuePair("username",
|
63 |
nameValuePairs.add(new BasicNameValuePair("username",
|
| 60 |
"flipkart-support@saholic.com"));
|
64 |
"flipkart-support@saholic.com"));
|