Subversion Repositories SmartDukaan

Rev

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

Rev 34321 Rev 34323
Line 135... Line 135...
135
 
135
 
136
 
136
 
137
    public void sendRbmFeedbackSummaryEmail() throws MessagingException, ProfitMandiBusinessException, IOException {
137
    public void sendRbmFeedbackSummaryEmail() throws MessagingException, ProfitMandiBusinessException, IOException {
138
        LocalDateTime startOfMonth = LocalDate.now().withDayOfMonth(1).atStartOfDay();
138
        LocalDateTime startOfMonth = LocalDate.now().withDayOfMonth(1).atStartOfDay();
139
        LocalDateTime endOfMonth = LocalDateTime.now();
139
        LocalDateTime endOfMonth = LocalDateTime.now();
140
        String[] bcc = {"ranu.rajput@smartdukaan.com"};
140
        String[] bcc = {"tarun.verma@smartdukaan.com"};
141
 
141
 
142
        // Get all RBM users
142
        // Get all RBM users
143
        List<AuthUser> authUsers = csService.getAuthUserIds(
143
        List<AuthUser> authUsers = csService.getAuthUserIds(
144
                ProfitMandiConstants.TICKET_CATEGORY_RBM,
144
                ProfitMandiConstants.TICKET_CATEGORY_RBM,
145
                Arrays.asList(EscalationType.L1)
145
                Arrays.asList(EscalationType.L1)
Line 217... Line 217...
217
 
217
 
218
        String subject = "Monthly RBM Feedback Summary - " + LocalDate.now().getMonth();
218
        String subject = "Monthly RBM Feedback Summary - " + LocalDate.now().getMonth();
219
 
219
 
220
        List<String> sendTo = new ArrayList<>();
220
        List<String> sendTo = new ArrayList<>();
221
        sendTo.add("ranu.rajput@smartdukaan.com");
221
        sendTo.add("ranu.rajput@smartdukaan.com");
-
 
222
        sendTo.add("sm@smartdukaan.com"); //
-
 
223
        sendTo.add("chiranjib.sarkar@smartdukaan.com"); //
222
        // sendTo.add("tejus.lohani@smartdukaan.com"); //
224
        sendTo.add("kamini.sharma@smartdukaan.com"); //
223
 
225
 
224
        String[] emailRecipients = sendTo.toArray(new String[0]);
226
        String[] emailRecipients = sendTo.toArray(new String[0]);
225
 
227
 
226
 
228
 
227
        this.sendMailHtmlFormat(emailRecipients, emailContent.toString(), null, bcc, subject);
229
        this.sendMailHtmlFormat(emailRecipients, emailContent.toString(), null, bcc, subject);
Line 232... Line 234...
232
 
234
 
233
 
235
 
234
    public void sendSalesFeedbackSummaryEmail() throws MessagingException, ProfitMandiBusinessException, IOException {
236
    public void sendSalesFeedbackSummaryEmail() throws MessagingException, ProfitMandiBusinessException, IOException {
235
        LocalDateTime startOfMonth = LocalDate.now().withDayOfMonth(1).atStartOfDay();
237
        LocalDateTime startOfMonth = LocalDate.now().withDayOfMonth(1).atStartOfDay();
236
        LocalDateTime endOfMonth = LocalDateTime.now();
238
        LocalDateTime endOfMonth = LocalDateTime.now();
237
        String[] bcc = {"ranu.rajput@smartdukaan.com"};
239
        String[] bcc = {"tarun.verma@smartdukaan.com"};
238
 
240
 
239
        // Get all RBM users
241
        // Get all RBM users
240
        List<AuthUser> authUsers = csService.getAuthUserIds(
242
        List<AuthUser> authUsers = csService.getAuthUserIds(
241
                ProfitMandiConstants.TICKET_CATEGORY_SALES,
243
                ProfitMandiConstants.TICKET_CATEGORY_SALES,
242
                Arrays.asList(EscalationType.L1)
244
                Arrays.asList(EscalationType.L1)
Line 314... Line 316...
314
 
316
 
315
        String subject = "Monthly Sales L1 Feedback Summary - " + LocalDate.now().getMonth();
317
        String subject = "Monthly Sales L1 Feedback Summary - " + LocalDate.now().getMonth();
316
 
318
 
317
        List<String> sendTo = new ArrayList<>();
319
        List<String> sendTo = new ArrayList<>();
318
        sendTo.add("ranu.rajput@smartdukaan.com");
320
        sendTo.add("ranu.rajput@smartdukaan.com");
-
 
321
         sendTo.add("sm@smartdukaan.com"); //
-
 
322
         sendTo.add("chiranjib.sarkar@smartdukaan.com"); //
319
        // sendTo.add("tejus.lohani@smartdukaan.com"); //
323
        sendTo.add("kamini.sharma@smartdukaan.com"); //
320
 
324
 
321
        String[] emailRecipients = sendTo.toArray(new String[0]);
325
        String[] emailRecipients = sendTo.toArray(new String[0]);
322
 
326
 
323
 
327
 
324
        this.sendMailHtmlFormat(emailRecipients, emailContent.toString(), null, bcc, subject);
328
        this.sendMailHtmlFormat(emailRecipients, emailContent.toString(), null, bcc, subject);