Subversion Repositories SmartDukaan

Rev

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

Rev 24121 Rev 24131
Line 44... Line 44...
44
	@Scheduled(cron = "0 0 9 * * *")
44
	@Scheduled(cron = "0 0 9 * * *")
45
	public void migrateLineItems() throws Throwable {
45
	public void migrateLineItems() throws Throwable {
46
		log.info("Started run Once");
46
		log.info("Started run Once");
47
		scheduledTasks.sendPartnerInvestmentDetails();
47
		scheduledTasks.sendPartnerInvestmentDetails();
48
	}
48
	}
49
	
49
 
50
	@Scheduled(cron="0 0 23 * * ?")
50
	@Scheduled(cron = "0 0 23 * * ?")
51
	public void sendMail() throws MessagingException, ProfitMandiBusinessException, IOException
51
	public void sendMail() throws MessagingException, ProfitMandiBusinessException, IOException {
52
	{
-
 
53
		log.info("sending mail");
52
		log.info("sending mail");
54
		String message=MessageFormat.format("Sale Target summary for {1}", LocalDate.now());
53
		String message = MessageFormat.format("Sale Target summary for {0}", LocalDate.now());
-
 
54
		String[] to = { "adeel.yazdani@smartdukaan.com", "kamal.kumar@smartdukaan.com",
-
 
55
				"mohinder.mutreja@smartdukaan.com", "dhruv.kathpal@smartdukaan.com" };
-
 
56
 
55
		scheduledTasks.sendMailWithAttachments("adeel.yazdani@smartdukaan.com", "Daily Sale Report", message);
57
		scheduledTasks.sendMailWithAttachments(to, "Daily Sale Report", message);
56
	}
58
	}
57
}
59
}