Subversion Repositories SmartDukaan

Rev

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

Rev 24842 Rev 24847
Line 1161... Line 1161...
1161
					dailyTarget.put(fofoId, dailyAverageSale.get(fofoId));
1161
					dailyTarget.put(fofoId, dailyAverageSale.get(fofoId));
1162
					break;
1162
					break;
1163
				}
1163
				}
1164
			}
1164
			}
1165
			NotificationCampaigns notification = new NotificationCampaigns();
1165
			NotificationCampaigns notification = new NotificationCampaigns();
1166
			notification.setName("Today's Sale");
1166
			notification.setName("Daily Sales");
-
 
1167
			notification.setTitle("Daily Sale Update");
1167
			if (dailyAverageSale != null && dailyAverageSale.get(fofoId) != null) {
1168
			if (dailyAverageSale != null && dailyAverageSale.get(fofoId) != null) {
1168
				LOGGER.info("Your today sale till" + " " + now.format(timeFormatter) + " " + "is" + " " + sale + " "
-
 
1169
						+ "vs" + " " + "daily target=" + dailyAverageSale.get(fofoId));
-
 
1170
				notification.setTitle("Your today sale till" + " " + now.format(timeFormatter) + " " + "is" + " " + sale
1169
				notification.setMessage(String.format("Rs.%d till %f. Today's Target is Rs.%f", sale,
1171
						+ " " + "vs" + " " + "daily target=" + dailyAverageSale.get(fofoId));
1170
						now.format(timeFormatter), dailyAverageSale.get(fofoId)));
1172
			} else {
1171
			} else {
1173
				notification.setTitle("Your today sale till" + " " + now.format(timeFormatter) + " " + "is" + " " + sale
1172
				notification.setMessage(String.format("Rs.%d till %f", sale,
1174
						+ " " + "vs" + " " + "daily target = 0.0");
-
 
1175
				LOGGER.info("Your today sale till" + " " + now.format(timeFormatter) + " " + "is" + " " + sale + " "
-
 
1176
						+ "vs" + " " + "daily target = 0.0");
1173
						now.format(timeFormatter)));
1177
			}
1174
			}
1178
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1175
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1179
			notification.setType("Url");
1176
			notification.setType("Url");
1180
			notification.setUrl("http://app.profitmandi.com/pages/home/dashboard");
1177
			notification.setUrl("http://app.profitmandi.com/pages/home/dashboard");
1181
			LOGGER.info("UserID" + userAccountRepository.selectUserIdByRetailerId(fofoId));
1178
			LOGGER.info("UserID" + userAccountRepository.selectUserIdByRetailerId(fofoId));