| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| - |
|
3 |
import in.shop2020.config.ConfigException;
|
| 3 |
import in.shop2020.crm.Activity;
|
4 |
import in.shop2020.crm.Activity;
|
| 4 |
import in.shop2020.crm.ActivityType;
|
5 |
import in.shop2020.crm.ActivityType;
|
| 5 |
import in.shop2020.crm.SearchFilter;
|
6 |
import in.shop2020.crm.SearchFilter;
|
| 6 |
import in.shop2020.crm.Ticket;
|
7 |
import in.shop2020.crm.Ticket;
|
| 7 |
import in.shop2020.crm.TicketCategory;
|
8 |
import in.shop2020.crm.TicketCategory;
|
| Line 28... |
Line 29... |
| 28 |
import in.shop2020.thrift.clients.HelperClient;
|
29 |
import in.shop2020.thrift.clients.HelperClient;
|
| 29 |
import in.shop2020.thrift.clients.LogisticsClient;
|
30 |
import in.shop2020.thrift.clients.LogisticsClient;
|
| 30 |
import in.shop2020.thrift.clients.PaymentClient;
|
31 |
import in.shop2020.thrift.clients.PaymentClient;
|
| 31 |
import in.shop2020.thrift.clients.TransactionClient;
|
32 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 32 |
import in.shop2020.thrift.clients.UserClient;
|
33 |
import in.shop2020.thrift.clients.UserClient;
|
| - |
|
34 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
| 33 |
import in.shop2020.utils.ModelUtils;
|
35 |
import in.shop2020.utils.ModelUtils;
|
| 34 |
import in.shop2020.warehouse.WarehouseService;
|
36 |
import in.shop2020.warehouse.WarehouseService;
|
| 35 |
|
37 |
|
| 36 |
import java.io.BufferedInputStream;
|
38 |
import java.io.BufferedInputStream;
|
| 37 |
import java.io.File;
|
39 |
import java.io.File;
|
| Line 263... |
Line 265... |
| 263 |
log.error("Could not mark order for Cancellation, OrderId : " + orderId, e);
|
265 |
log.error("Could not mark order for Cancellation, OrderId : " + orderId, e);
|
| 264 |
}
|
266 |
}
|
| 265 |
return index();
|
267 |
return index();
|
| 266 |
}
|
268 |
}
|
| 267 |
|
269 |
|
| 268 |
public void getOrderConfirmationMail() throws IOException, TException {
|
270 |
public void getOrderConfirmationMail() throws IOException, TException, ConfigException {
|
| - |
|
271 |
String helper_service_server=ConfigClient.getClient().get("helper_service_server");
|
| - |
|
272 |
String helper_service_server_port=ConfigClient.getClient().get("helper_service_server_port");
|
| 269 |
HelperClient helperClient = new HelperClient();
|
273 |
HelperClient helperClient = new HelperClient(helper_service_server,helper_service_server_port);
|
| 270 |
String mail = helperClient.getClient().getOrderConfirmationMail(orderId);
|
274 |
String mail = helperClient.getClient().getOrderConfirmationMail(orderId);
|
| 271 |
File file = new File("temp");
|
275 |
File file = new File("temp");
|
| 272 |
FileWriter writer = new FileWriter(file);
|
276 |
FileWriter writer = new FileWriter(file);
|
| 273 |
writer.append(mail);
|
277 |
writer.append(mail);
|
| 274 |
writer.close();
|
278 |
writer.close();
|