| Line 80... |
Line 80... |
| 80 |
password = "cafe@nes";
|
80 |
password = "cafe@nes";
|
| 81 |
mailer = new GmailUtils();
|
81 |
mailer = new GmailUtils();
|
| 82 |
//sendTo = new String[]{"vikram.raghav@shop2020.in"};
|
82 |
//sendTo = new String[]{"vikram.raghav@shop2020.in"};
|
| 83 |
sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
83 |
sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 84 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
84 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 85 |
"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in","anikendra.das@shop2020.in"};
|
85 |
"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","manish.sharma@shop2020.in","anikendra.das@shop2020.in"};
|
| 86 |
List<String> flipkartorderids = null;
|
86 |
List<String> flipkartorderids = null;
|
| 87 |
Client catalogServiceClient = null;
|
87 |
Client catalogServiceClient = null;
|
| 88 |
try {
|
88 |
try {
|
| 89 |
catalogServiceClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
|
89 |
catalogServiceClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
|
| 90 |
} catch (TTransportException e) {
|
90 |
} catch (TTransportException e) {
|
| Line 268... |
Line 268... |
| 268 |
stock = defaultinventory;
|
268 |
stock = defaultinventory;
|
| 269 |
}
|
269 |
}
|
| 270 |
}
|
270 |
}
|
| 271 |
System.out.println("Item ID " + entry.getKey()+" Stock "+stock +" Orders " + itemIdOrdersMap.get(entry.getKey()));
|
271 |
System.out.println("Item ID " + entry.getKey()+" Stock "+stock +" Orders " + itemIdOrdersMap.get(entry.getKey()));
|
| 272 |
actualstock = stock;
|
272 |
actualstock = stock;
|
| - |
|
273 |
if(stock >3){
|
| 273 |
if(itemIdOrdersMap!=null && itemIdOrdersMap.containsKey(entry.getKey())){
|
274 |
if(itemIdOrdersMap!=null && itemIdOrdersMap.containsKey(entry.getKey())){
|
| 274 |
stock = stock + itemIdOrdersMap.get(entry.getKey());
|
275 |
stock = stock + itemIdOrdersMap.get(entry.getKey());
|
| 275 |
orders = itemIdOrdersMap.get(entry.getKey());
|
276 |
orders = itemIdOrdersMap.get(entry.getKey());
|
| - |
|
277 |
}
|
| 276 |
}
|
278 |
}
|
| 277 |
if(stock<0){
|
279 |
if(stock<0){
|
| 278 |
stock =0;
|
280 |
stock =0;
|
| 279 |
}
|
281 |
}
|
| 280 |
else{
|
282 |
else{
|