Subversion Repositories SmartDukaan

Rev

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

Rev 28396 Rev 28397
Line 425... Line 425...
425
			gmailIds.add("tejbeerkaur27@gmail.com");
425
			gmailIds.add("tejbeerkaur27@gmail.com");
426
			List<User> user = dtrUserRepository.selectAllByEmailIds(gmailIds);
426
			List<User> user = dtrUserRepository.selectAllByEmailIds(gmailIds);
427
			List<Integer> userIds = user.stream().map(x -> x.getId()).collect(Collectors.toList());
427
			List<Integer> userIds = user.stream().map(x -> x.getId()).collect(Collectors.toList());
428
 
428
 
429
			logger.info("userIds" + userIds);
429
			logger.info("userIds" + userIds);
430
		/*	SendNotificationModel sendNotificationModel = new SendNotificationModel();
430
			SendNotificationModel sendNotificationModel = new SendNotificationModel();
431
			sendNotificationModel.setCampaignName("Online Order Alert");
431
			sendNotificationModel.setCampaignName("Online Order Alert");
432
			sendNotificationModel.setTitle("Online Order Update");
432
			sendNotificationModel.setTitle("Online Order Update");
433
			sendNotificationModel.setMessage(String.format(
433
			sendNotificationModel.setMessage(String.format(
434
					"You have new Online Order. Please check your Dashboard. In case of an activation scheme pls ensure the handset is activated, payout will be processed as per brand's activation report."));
434
					"You have new Online Order. Please check your Dashboard. In case of an activation scheme pls ensure the handset is activated, payout will be processed as per brand's activation report."));
435
			sendNotificationModel.setType("url");
435
			sendNotificationModel.setType("url");
436
			sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
436
			sendNotificationModel.setUrl("https://app.smartdukaan.com/pages/home/notifications");
437
			sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
437
			sendNotificationModel.setExpiresat(LocalDateTime.now().plusDays(1));
438
			sendNotificationModel.setMessageType(MessageType.notification);
438
			sendNotificationModel.setMessageType(MessageType.notification);
439
			int userId = userAccountRepository.selectUserIdByRetailerId(pendingOrder.getFofoId());
439
			int userId = userAccountRepository.selectUserIdByRetailerId(pendingOrder.getFofoId());
440
			sendNotificationModel.setUserIds(Arrays.asList(userId));
440
			sendNotificationModel.setUserIds(Arrays.asList(userId));
441
			notificationService.sendNotification(sendNotificationModel);*/
441
			notificationService.sendNotification(sendNotificationModel);
442
 
442
 
443
			SendNotificationModel snm = new SendNotificationModel();
443
			SendNotificationModel snm = new SendNotificationModel();
444
			snm.setCampaignName("Online Order Alert");
444
			snm.setCampaignName("Online Order Alert");
445
			snm.setTitle("Online Order Update");
445
			snm.setTitle("Online Order Update");
446
			snm.setMessage(String.format("Your Partner " + customRetailer.getBusinessName()
446
			snm.setMessage(String.format("Your Partner " + customRetailer.getBusinessName()