Subversion Repositories SmartDukaan

Rev

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

Rev 24656 Rev 24657
Line 1320... Line 1320...
1320
			notification.setExpiresat(LocalDateTime.now().toEpochSecond(ZoneOffset.ofHoursMinutes(5, 30)));
1320
			notification.setExpiresat(LocalDateTime.now().toEpochSecond(ZoneOffset.ofHoursMinutes(5, 30)));
1321
			notification.setStatus("active");
1321
			notification.setStatus("active");
1322
			notification.setSmsprocessed(0);
1322
			notification.setSmsprocessed(0);
1323
			notification.setNotification_processed(0);
1323
			notification.setNotification_processed(0);
1324
			notification.setNotification_type("GENERAL_NOTIFICATION");
1324
			notification.setNotification_type("GENERAL_NOTIFICATION");
1325
			//mongoClient.persistNotificationCmpInfo(notification);
1325
			mongoClient.persistNotificationCmpInfo(notification);
1326
			salesByFofoIdMap.put(fofoId, sale);
1326
			salesByFofoIdMap.put(fofoId, sale);
1327
			LOGGER.info(sale);
1327
			LOGGER.info(sale);
1328
		}
1328
		}
1329
		String saleReport = this.getDailySalesReportByPartnerId(salesByFofoIdMap,dailyTarget);
1329
		String saleReport = this.getDailySalesReportByPartnerId(salesByFofoIdMap,dailyTarget);
1330
		LOGGER.info(saleReport);
1330
		LOGGER.info(saleReport);
1331
		String cc[] = { "Tarun.verma@smartdukaan.com", "Kamini.sharma@smartdukaan.com",
1331
		String cc[] = { "Tarun.verma@smartdukaan.com", "Kamini.sharma@smartdukaan.com",
1332
				"chaitnaya.vats@smartdukaan.com","adeel.yazdani@smartdukaan.com","mohinder.mutreja@smartdukaan.com"};
1332
				"chaitnaya.vats@smartdukaan.com","adeel.yazdani@smartdukaan.com","mohinder.mutreja@smartdukaan.com"};
1333
		String subject = "sale report till" + " " + now.format(timeFormatter);
1333
		String subject = "sale report till" + " " + now.format(timeFormatter);
1334
		this.sendMailOfHtmlFomat("amod.sen@smartdukaan.com", saleReport, null, subject);
1334
		this.sendMailOfHtmlFomat("amod.sen@smartdukaan.com", saleReport, cc, subject);
1335
	}
1335
	}
1336
 
1336
 
1337
	public String getDailySalesReportByPartnerId(Map<Integer, Double> salesByFofoIdMap,Map<Integer, Float> dailyTarget)
1337
	public String getDailySalesReportByPartnerId(Map<Integer, Double> salesByFofoIdMap,Map<Integer, Float> dailyTarget)
1338
			throws ProfitMandiBusinessException {
1338
			throws ProfitMandiBusinessException {
1339
		StringBuilder sb = new StringBuilder();
1339
		StringBuilder sb = new StringBuilder();