| Line 75... |
Line 75... |
| 75 |
private boolean processUserCommunication(UserCommunication userCommunication) {
|
75 |
private boolean processUserCommunication(UserCommunication userCommunication) {
|
| 76 |
try{
|
76 |
try{
|
| 77 |
log.info("Processing userCommunication : " + userCommunication.getId());
|
77 |
log.info("Processing userCommunication : " + userCommunication.getId());
|
| 78 |
|
78 |
|
| 79 |
Ticket ticket = new Ticket();
|
79 |
Ticket ticket = new Ticket();
|
| 80 |
ticket.setAirwayBillNo(userCommunication.getAirwaybillNo());
|
80 |
|
| 81 |
ticket.setProductName(userCommunication.getProductName());
|
81 |
ticket.setProductName(userCommunication.getProductName());
|
| 82 |
TicketCategory tktCategory = TicketCategory.findByValue
|
82 |
TicketCategory tktCategory = TicketCategory.findByValue
|
| 83 |
((int)userCommunication.getCommunicationType().getValue());
|
83 |
((int)userCommunication.getCommunicationType().getValue());
|
| 84 |
if(tktCategory != null) {
|
84 |
if(tktCategory != null) {
|
| 85 |
ticket.setCategory(tktCategory);
|
85 |
ticket.setCategory(tktCategory);
|
| 86 |
} else {
|
86 |
} else {
|
| 87 |
ticket.setCategory(TicketCategory.OTHER);
|
87 |
ticket.setCategory(TicketCategory.OTHER);
|
| 88 |
}
|
88 |
}
|
| - |
|
89 |
if(!ticket.getCategory().equals(TicketCategory.RECHARGE_RELATED)) {
|
| - |
|
90 |
ticket.setAirwayBillNo(userCommunication.getAirwaybillNo());
|
| - |
|
91 |
ticket.setDescription("From: " + userCommunication.getReplyTo() +
|
| - |
|
92 |
"\n\nSubject: " + userCommunication.getSubject() +
|
| - |
|
93 |
"\n\nBody: " + userCommunication.getMessage());
|
| 89 |
|
94 |
} else {
|
| 90 |
ticket.setDescription("From: " + userCommunication.getReplyTo() +
|
95 |
ticket.setDescription("From: " + userCommunication.getReplyTo() +
|
| 91 |
"\n\nSubject: " + userCommunication.getSubject() +
|
96 |
"\n\nSubject: " + userCommunication.getSubject() +
|
| 92 |
"\n\nBody: " + userCommunication.getMessage());
|
97 |
"\n\nBody: " + userCommunication.getMessage() +
|
| - |
|
98 |
"\n\nDevice Number:" + userCommunication.getAirwaybillNo());
|
| - |
|
99 |
}
|
| 93 |
if(userCommunication.getCommunicationType().getValue() == 2) {
|
100 |
if(userCommunication.getCommunicationType().getValue() == 2) {
|
| 94 |
ticket.setAssigneeId(DEF_ASSIGNEE_FOR_ORDER_CANCEL);
|
101 |
ticket.setAssigneeId(DEF_ASSIGNEE_FOR_ORDER_CANCEL);
|
| 95 |
}
|
102 |
}
|
| 96 |
ticket.setCustomerEmailId(userCommunication.getReplyTo());
|
103 |
ticket.setCustomerEmailId(userCommunication.getReplyTo());
|
| 97 |
ticket.setOrderId(userCommunication.getOrderId());
|
104 |
ticket.setOrderId(userCommunication.getOrderId());
|