| Line 737... |
Line 737... |
| 737 |
sendNotificationModel.setMessageType(MessageType.notification);
|
737 |
sendNotificationModel.setMessageType(MessageType.notification);
|
| 738 |
int userId = userAccountRepository.selectUserIdByRetailerId(orders.get(0).getRetailerId());
|
738 |
int userId = userAccountRepository.selectUserIdByRetailerId(orders.get(0).getRetailerId());
|
| 739 |
sendNotificationModel.setUserIds(Arrays.asList(userId));
|
739 |
sendNotificationModel.setUserIds(Arrays.asList(userId));
|
| 740 |
notificationService.sendNotification(sendNotificationModel);
|
740 |
notificationService.sendNotification(sendNotificationModel);
|
| 741 |
|
741 |
|
| 742 |
String message = String.format("Dear partner, Your SmartDukaan Order " + dl.getAirwayBillNumber() + " has been delivered to you in a safe sealed bag.");
|
742 |
//String message = String.format("Dear partner, Your SmartDukaan Order " + dl.getAirwayBillNumber() + " has been delivered to you in a safe sealed bag.");
|
| 743 |
|
743 |
|
| 744 |
notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
|
744 |
//notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
|
| 745 |
|
745 |
|
| 746 |
} else {
|
746 |
} else {
|
| 747 |
throw new ProfitMandiBusinessException("Upload File", "", "No order available for " + dl.getAirwayBillNumber() + " airwaybill Number");
|
747 |
throw new ProfitMandiBusinessException("Upload File", "", "No order available for " + dl.getAirwayBillNumber() + " airwaybill Number");
|
| 748 |
|
748 |
|
| 749 |
}
|
749 |
}
|