| Line 695... |
Line 695... |
| 695 |
sendNotificationModel.setType("url");
|
695 |
sendNotificationModel.setType("url");
|
| 696 |
sendNotificationModel.setMessage(reason);
|
696 |
sendNotificationModel.setMessage(reason);
|
| 697 |
sendNotificationModel.setUrl("http://app.smartdukaan.com/pages/home/orderDetails");
|
697 |
sendNotificationModel.setUrl("http://app.smartdukaan.com/pages/home/orderDetails");
|
| 698 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(2));
|
698 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(2));
|
| 699 |
sendNotificationModel.setMessageType(MessageType.notification);
|
699 |
sendNotificationModel.setMessageType(MessageType.notification);
|
| - |
|
700 |
int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
|
| - |
|
701 |
List<Integer> userIds = new ArrayList<>();
|
| - |
|
702 |
userIds.add(userId);
|
| - |
|
703 |
sendNotificationModel.setUserIds(userIds);
|
| 700 |
notificationService.sendNotification(sendNotificationModel);
|
704 |
notificationService.sendNotification(sendNotificationModel);
|
| 701 |
|
705 |
|
| 702 |
}
|
706 |
}
|
| 703 |
|
707 |
|
| 704 |
@RequestMapping(value = "/getNotifyItemColor", method = RequestMethod.GET)
|
708 |
@RequestMapping(value = "/getNotifyItemColor", method = RequestMethod.GET)
|
| Line 802... |
Line 806... |
| 802 |
sendNotificationModel.setType("url");
|
806 |
sendNotificationModel.setType("url");
|
| 803 |
sendNotificationModel.setTitle("Alert");
|
807 |
sendNotificationModel.setTitle("Alert");
|
| 804 |
sendNotificationModel.setUrl("http://app.smartdukaan.com/pages/home/notifyOrder");
|
808 |
sendNotificationModel.setUrl("http://app.smartdukaan.com/pages/home/notifyOrder");
|
| 805 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(2));
|
809 |
sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(2));
|
| 806 |
sendNotificationModel.setMessageType(MessageType.notification);
|
810 |
sendNotificationModel.setMessageType(MessageType.notification);
|
| - |
|
811 |
int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
|
| - |
|
812 |
List<Integer> userIds = new ArrayList<>();
|
| - |
|
813 |
userIds.add(userId);
|
| - |
|
814 |
sendNotificationModel.setUserIds(userIds);
|
| 807 |
notificationService.sendNotification(sendNotificationModel);
|
815 |
notificationService.sendNotification(sendNotificationModel);
|
| 808 |
|
816 |
|
| 809 |
}
|
817 |
}
|
| 810 |
model.addAttribute("response", mvcResponseSender.createResponseString(true));
|
818 |
model.addAttribute("response", mvcResponseSender.createResponseString(true));
|
| 811 |
return "response";
|
819 |
return "response";
|