Subversion Repositories SmartDukaan

Rev

Rev 32763 | Rev 32784 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32763 Rev 32777
Line 321... Line 321...
321
                    sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
321
                    sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
322
                    sendNotificationModel.setMessageType(MessageType.notification);
322
                    sendNotificationModel.setMessageType(MessageType.notification);
323
                    int userId = userAccountRepository.selectUserIdByRetailerId(dn.getValue().getFofoId());
323
                    int userId = userAccountRepository.selectUserIdByRetailerId(dn.getValue().getFofoId());
324
                    sendNotificationModel.setUserIds(Arrays.asList(userId));
324
                    sendNotificationModel.setUserIds(Arrays.asList(userId));
325
                    notificationService.sendNotification(sendNotificationModel);
325
                    notificationService.sendNotification(sendNotificationModel);
-
 
326
                    //TODO-Whatsapp
326
                    notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
327
                    //notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
327
                }
328
                }
328
 
329
 
329
            }
330
            }
330
        }
331
        }
331
 
332
 
Line 651... Line 652...
651
                    sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
652
                    sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
652
                    sendNotificationModel.setMessageType(MessageType.notification);
653
                    sendNotificationModel.setMessageType(MessageType.notification);
653
                    int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
654
                    int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
654
                    sendNotificationModel.setUserIds(Arrays.asList(userId));
655
                    sendNotificationModel.setUserIds(Arrays.asList(userId));
655
                    notificationService.sendNotification(sendNotificationModel);
656
                    notificationService.sendNotification(sendNotificationModel);
-
 
657
                    //TODO-Whatsapp
656
                    notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
658
                    //notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
657
                } else {
659
                } else {
658
                    throw new ProfitMandiBusinessException("Upload File", "", "No order available for " + ddm.getAirwayBIllNumber() + " airwaybill Number");
660
                    throw new ProfitMandiBusinessException("Upload File", "", "No order available for " + ddm.getAirwayBIllNumber() + " airwaybill Number");
659
 
661
 
660
                }
662
                }
661
            }
663
            }