| Line 1590... |
Line 1590... |
| 1590 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
1590 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
| 1591 |
sendNotificationModel.setCampaignName("Alert");
|
1591 |
sendNotificationModel.setCampaignName("Alert");
|
| 1592 |
sendNotificationModel.setMessage("Suggested Po");
|
1592 |
sendNotificationModel.setMessage("Suggested Po");
|
| 1593 |
sendNotificationModel.setType("url");
|
1593 |
sendNotificationModel.setType("url");
|
| 1594 |
sendNotificationModel.setTitle("Alert");
|
1594 |
sendNotificationModel.setTitle("Alert");
|
| 1595 |
sendNotificationModel.setUrl("http://app.smartdukaan.com/pages/home/partnerPo/" + mp.getId());
|
1595 |
sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/partnerPo/"+mp.getId());
|
| 1596 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(2));
|
1596 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(2));
|
| 1597 |
sendNotificationModel.setMessageType(MessageType.notification);
|
1597 |
sendNotificationModel.setMessageType(MessageType.notification);
|
| 1598 |
int userId = userAccountRepository.selectUserIdByRetailerId(monthlyPoModel.getFofoId());
|
1598 |
int userId = userAccountRepository.selectUserIdByRetailerId(monthlyPoModel.getFofoId());
|
| 1599 |
|
1599 |
|
| 1600 |
sendNotificationModel.setUserIds(Arrays.asList(userId));
|
1600 |
sendNotificationModel.setUserIds(Arrays.asList(userId));
|