| Line 365... |
Line 365... |
| 365 |
ticket.setOrderId(Long.parseLong(orderId));
|
365 |
ticket.setOrderId(Long.parseLong(orderId));
|
| 366 |
}
|
366 |
}
|
| 367 |
|
367 |
|
| 368 |
if (TicketCategory.valueOf(category) == TicketCategory.DOA_RECEIVED) {
|
368 |
if (TicketCategory.valueOf(category) == TicketCategory.DOA_RECEIVED) {
|
| 369 |
transactionServiceClient = new TransactionClient().getClient();
|
369 |
transactionServiceClient = new TransactionClient().getClient();
|
| 370 |
/*if (!transactionServiceClient.markOrderDoaRequestReceived(Long.parseLong(orderId))) {
|
370 |
if (!transactionServiceClient.markOrderDoaRequestReceived(Long.parseLong(orderId))) {
|
| 371 |
throw new Exception("Order cannot be marked as DOA Received");
|
371 |
throw new Exception("Order cannot be marked as DOA Received");
|
| 372 |
}*/
|
372 |
}
|
| 373 |
log.info("" + userId);
|
373 |
log.info("" + userId);
|
| 374 |
try{
|
374 |
try{
|
| 375 |
Order order = transactionServiceClient.getOrder(Long.parseLong(orderId));
|
375 |
Order order = transactionServiceClient.getOrder(Long.parseLong(orderId));
|
| 376 |
log.info("In order table id is : " + order.getCustomer_id());
|
376 |
log.info("In order table id is : " + order.getCustomer_id());
|
| 377 |
if (userId == null || userId.isEmpty() || order.getCustomer_id() != Long.parseLong(userId)) {
|
377 |
if (userId == null || userId.isEmpty() || order.getCustomer_id() != Long.parseLong(userId)) {
|
| Line 382... |
Line 382... |
| 382 |
}
|
382 |
}
|
| 383 |
}
|
383 |
}
|
| 384 |
|
384 |
|
| 385 |
if (TicketCategory.valueOf(category) == TicketCategory.RETURN_FORM) {
|
385 |
if (TicketCategory.valueOf(category) == TicketCategory.RETURN_FORM) {
|
| 386 |
transactionServiceClient = new TransactionClient().getClient();
|
386 |
transactionServiceClient = new TransactionClient().getClient();
|
| 387 |
/*if (!transactionServiceClient.markOrderReturnRequestReceived(Long.parseLong(orderId))) {
|
387 |
if (!transactionServiceClient.markOrderReturnRequestReceived(Long.parseLong(orderId))) {
|
| 388 |
throw new Exception("Order cannot be marked as Return Requested");
|
388 |
throw new Exception("Order cannot be marked as Return Requested");
|
| 389 |
}*/
|
389 |
}
|
| 390 |
log.info("" + userId);
|
390 |
log.info("" + userId);
|
| 391 |
try{
|
391 |
try{
|
| 392 |
Order order = transactionServiceClient.getOrder(Long.parseLong(orderId));
|
392 |
Order order = transactionServiceClient.getOrder(Long.parseLong(orderId));
|
| 393 |
log.info("In order table id is : " + order.getCustomer_id());
|
393 |
log.info("In order table id is : " + order.getCustomer_id());
|
| 394 |
if (userId == null || userId.isEmpty() || order.getCustomer_id() != Long.parseLong(userId)) {
|
394 |
if (userId == null || userId.isEmpty() || order.getCustomer_id() != Long.parseLong(userId)) {
|