Subversion Repositories SmartDukaan

Rev

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

Rev 35096 Rev 35210
Line 326... Line 326...
326
            SendNotificationModel sendNotificationModel = new SendNotificationModel();
326
            SendNotificationModel sendNotificationModel = new SendNotificationModel();
327
            List<SchemeItem> schemeItems = schemeItemRepository.selectBySchemeIds(Collections.singleton(scheme.getId()));
327
            List<SchemeItem> schemeItems = schemeItemRepository.selectBySchemeIds(Collections.singleton(scheme.getId()));
328
            Set<Integer> catalogIds = schemeItems.stream().map(x -> x.getCatalogId()).collect(Collectors.toSet());
328
            Set<Integer> catalogIds = schemeItems.stream().map(x -> x.getCatalogId()).collect(Collectors.toSet());
329
            List<String> itemDescriptions = itemRepository.selectAllByCatalogIds(catalogIds).stream().filter(Utils.distinctByKey(Item::getCatalogItemId))
329
            List<String> itemDescriptions = itemRepository.selectAllByCatalogIds(catalogIds).stream().filter(Utils.distinctByKey(Item::getCatalogItemId))
330
                    .map(x -> x.getItemDescriptionNoColor()).collect(Collectors.toList());
330
                    .map(x -> x.getItemDescriptionNoColor()).collect(Collectors.toList());
331
            String titleTemplate = "%s of Rs.%s for %s";
331
            String titleTemplate = "Important Notice!\n\n %s of Rs.%s for %s";
332
            String schemeString = "Activation scheme";
332
            String schemeString = "Activation scheme";
333
            if (scheme.getType().equals(SchemeType.SPECIAL_SUPPORT)) {
333
            if (scheme.getType().equals(SchemeType.SPECIAL_SUPPORT)) {
334
                schemeString = "Special Support";
334
                schemeString = "Special Support";
335
            }
335
            }
336
 
336