Subversion Repositories SmartDukaan

Rev

Rev 35854 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35854 Rev 35943
Line 1717... Line 1717...
1717
            userId = userAccountRepository.selectUserIdByRetailerId(loginDetails.getFofoId());
1717
            userId = userAccountRepository.selectUserIdByRetailerId(loginDetails.getFofoId());
1718
        }
1718
        }
1719
        List<Notification> notifications = null;
1719
        List<Notification> notifications = null;
1720
 
1720
 
1721
        List<NotificationCampaign> notificationCampaigns = notificationCampaignRepository.getNotifications(messageType, userId, offset, limit);
1721
        List<NotificationCampaign> notificationCampaigns = notificationCampaignRepository.getNotifications(messageType, userId, offset, limit);
1722
        LOGGER.info("messageType" + messageType);
1722
        LOGGER.debug("messageType {}", messageType);
1723
        if (messageType != null) {
1723
        if (messageType != null) {
1724
            notifications = fofoUser.getNotifications(notificationCampaigns, messageType);
1724
            notifications = fofoUser.getNotifications(notificationCampaigns, messageType);
1725
 
1725
 
1726
            model.addAttribute("notifications", notifications);
1726
            model.addAttribute("notifications", notifications);
1727
 
1727
 
1728
            LOGGER.info("notifications" + notifications);
1728
            LOGGER.debug("notifications count {}", notifications.size());
1729
        }
1729
        }
1730
        return "notification-template";
1730
        return "notification-template";
1731
    }
1731
    }
1732
 
1732
 
1733
    @RequestMapping(value = "/notifyDocument/documentId", method = RequestMethod.GET)
1733
    @RequestMapping(value = "/notifyDocument/documentId", method = RequestMethod.GET)