Subversion Repositories SmartDukaan

Rev

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

Rev 24856 Rev 24863
Line 1177... Line 1177...
1177
				notification.setMessage(String.format("Rs.%f till %s", sale,
1177
				notification.setMessage(String.format("Rs.%f till %s", sale,
1178
						now.format(timeFormatter)));
1178
						now.format(timeFormatter)));
1179
			}
1179
			}
1180
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1180
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1181
			notification.setType("Url");
1181
			notification.setType("Url");
1182
			notification.setUrl("http://app.profitmandi.com/pages/home/dashboard");
1182
			notification.setUrl("http://app.profitmandi.com/pages/home/notifications");
1183
			LOGGER.info("UserID" + userAccountRepository.selectUserIdByRetailerId(fofoId));
1183
			LOGGER.info("UserID" + userAccountRepository.selectUserIdByRetailerId(fofoId));
1184
			notification.setSql("SELECT distinct d1.user_id from devices d1 left join devices d2 on"
1184
			notification.setSql("SELECT distinct d1.user_id from devices d1 left join devices d2 on"
1185
					+ "(d1.imeinumber = d2.imeinumber and d1.created < d2.created) "
1185
					+ "(d1.imeinumber = d2.imeinumber and d1.created < d2.created) "
1186
					+ " where d2.id is null and d1.user_id = "
1186
					+ " where d2.id is null and d1.user_id = "
1187
					+ userAccountRepository.selectUserIdByRetailerId(fofoId));
1187
					+ userAccountRepository.selectUserIdByRetailerId(fofoId));