Subversion Repositories SmartDukaan

Rev

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

Rev 24188 Rev 24189
Line 450... Line 450...
450
		List<InputStream> input=new ArrayList<>();
450
		List<InputStream> input=new ArrayList<>();
451
		List<PartnerTargetDetails> partnerTargetDetails = partnerTargetRepository
451
		List<PartnerTargetDetails> partnerTargetDetails = partnerTargetRepository
452
				.selectAllGeEqAndLeEqStartDateAndEndDate(LocalDateTime.now());
452
				.selectAllGeEqAndLeEqStartDateAndEndDate(LocalDateTime.now());
453
		for (Integer fofoId : fofoIds) {
453
		for (Integer fofoId : fofoIds) {
454
			InputStream is=targetService.getDailySaleReportVsTargetForPartner(fofoId,partnerTargetDetails);
454
			InputStream is=targetService.getDailySaleReportVsTargetForPartner(fofoId,partnerTargetDetails);
-
 
455
			if(is!=null)
-
 
456
			{
455
			LOGGER.info("fofoId"+fofoId);
457
			LOGGER.info("fofoId"+fofoId);
456
			String email= "govind.kumar@shop2020.in";
-
 
457
			LOGGER.info(fofoIdsAndCustomRetailer.get(fofoId).getEmail());
458
			LOGGER.info(fofoIdsAndCustomRetailer.get(fofoId).getEmail());
458
			String subject="Daily Sales Report";
459
			String subject="Daily Sales Report";
459
			String message = MessageFormat.format("Sale Target summary for {0}",LocalDate.now());
460
			String message = MessageFormat.format("Sale Target summary for {0}",LocalDate.now());
460
			LOGGER.info(message);
461
			LOGGER.info(message);
461
			this.sendMailWithAttachmentsForPartners(email, message, subject, is);
462
			this.sendMailWithAttachmentsForPartners("govind.kumar@shop2020.in",message, subject, is);
-
 
463
			}
-
 
464
			
462
		}
465
		}
463
	}
466
	}
464
 
467
 
465
}
468
}