Subversion Repositories SmartDukaan

Rev

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

Rev 30989 Rev 31144
Line 922... Line 922...
922
		sendNotificationModel.setMessageType(MessageType.notification);
922
		sendNotificationModel.setMessageType(MessageType.notification);
923
		int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
923
		int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
924
		sendNotificationModel.setUserIds(Arrays.asList(userId));
924
		sendNotificationModel.setUserIds(Arrays.asList(userId));
925
		notificationService.sendNotification(sendNotificationModel);
925
		notificationService.sendNotification(sendNotificationModel);
926
 
926
 
927
		notificationService.sendWhatsappMessage(message, title, address.getPhoneNumber());
927
		// notificationService.sendWhatsappMessage(message, title,
-
 
928
		// address.getPhoneNumber());
928
 
929
 
929
	}
930
	}
930
 
931
 
931
	@RequestMapping(value = "/getNotifyItemColor", method = RequestMethod.GET)
932
	@RequestMapping(value = "/getNotifyItemColor", method = RequestMethod.GET)
932
	public String getNotifyItemColor(HttpServletRequest request, @RequestParam int catalogItemId,
933
	public String getNotifyItemColor(HttpServletRequest request, @RequestParam int catalogItemId,
Line 1041... Line 1042...
1041
			int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
1042
			int userId = userAccountRepository.selectUserIdByRetailerId(order.getRetailerId());
1042
 
1043
 
1043
			sendNotificationModel.setUserIds(Arrays.asList(userId));
1044
			sendNotificationModel.setUserIds(Arrays.asList(userId));
1044
			notificationService.sendNotification(sendNotificationModel);
1045
			notificationService.sendNotification(sendNotificationModel);
1045
 
1046
 
1046
			//notificationService.sendWhatsappMessage(message.getNotifyMessages(), title, address.getPhoneNumber());
1047
			// notificationService.sendWhatsappMessage(message.getNotifyMessages(), title,
-
 
1048
			// address.getPhoneNumber());
1047
 
1049
 
1048
		}
1050
		}
1049
		model.addAttribute("response", mvcResponseSender.createResponseString(true));
1051
		model.addAttribute("response", mvcResponseSender.createResponseString(true));
1050
		return "response";
1052
		return "response";
1051
	}
1053
	}