Subversion Repositories SmartDukaan

Rev

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

Rev 23931 Rev 23932
Line 140... Line 140...
140
	@Autowired
140
	@Autowired
141
	private OrderRepository orderRepository;
141
	private OrderRepository orderRepository;
142
 
142
 
143
	@Autowired
143
	@Autowired
144
	private JavaMailSender mailSender;
144
	private JavaMailSender mailSender;
-
 
145
	
-
 
146
	@Autowired
-
 
147
	private JavaMailSender googleMailSender;
145
 
148
 
146
	@Autowired
149
	@Autowired
147
	private InventoryService inventoryService;
150
	private InventoryService inventoryService;
148
 
151
 
149
	private static final Logger LOGGER = LogManager.getLogger(ScheduledTasks.class);
152
	private static final Logger LOGGER = LogManager.getLogger(ScheduledTasks.class);
Line 347... Line 350...
347
				} catch (Exception e) {
350
				} catch (Exception e) {
348
					LOGGER.info("Could not get investment details for partner {}, re", retailer.getEmail());
351
					LOGGER.info("Could not get investment details for partner {}, re", retailer.getEmail());
349
					e.printStackTrace();
352
					e.printStackTrace();
350
				}
353
				}
351
			}
354
			}
352
			Utils.sendMailWithAttachment(mailSender, "kamini.sharma@smartdukaan.com",
355
			Utils.sendMailWithAttachment(googleMailSender, "kamini.sharma@smartdukaan.com",
353
					new String[] { "amandeep.singh@smartdukaan.com", "tarun.verma@smartdukaan.com" },
356
					new String[] { "amandeep.singh@smartdukaan.com", "tarun.verma@smartdukaan.com" },
354
					"Partner Investment Summary", "PFA", fileName, new ByteArrayResource(baos.toByteArray()));
357
					"Partner Investment Summary", "PFA", fileName, new ByteArrayResource(baos.toByteArray()));
355
 
358
 
356
		}
359
		}
357
	}
360
	}