Subversion Repositories SmartDukaan

Rev

Rev 36986 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36986 Rev 36987
Line 1370... Line 1370...
1370
                    fofoDayBeforeYesterdaySecondaryMap.get(fofoId)
1370
                    fofoDayBeforeYesterdaySecondaryMap.get(fofoId)
1371
            ));
1371
            ));
1372
            rows.add(row);
1372
            rows.add(row);
1373
        }
1373
        }
1374
 
1374
 
1375
       /* Map<String, Set<Integer>> storeGuyMap = this.generateBiReportHierarchyWise();
1375
        Map<String, Set<Integer>> storeGuyMap = this.generateBiReportHierarchyWise();
1376
 
1376
 
1377
        for (Map.Entry<String, Set<Integer>> storeGuyEntry : storeGuyMap.entrySet()) {
1377
        for (Map.Entry<String, Set<Integer>> storeGuyEntry : storeGuyMap.entrySet()) {
1378
            String storeGuyEmail = storeGuyEntry.getKey();
1378
            String storeGuyEmail = storeGuyEntry.getKey();
1379
            Set<Integer> fofoIds = storeGuyEntry.getValue();
1379
            Set<Integer> fofoIds = storeGuyEntry.getValue();
1380
            String[] sendToArray = new String[]{storeGuyEmail};
1380
            String[] sendToArray = new String[]{storeGuyEmail};
1381
 
1381
 
1382
            List<List<?>> filteredRows = rows.stream()
1382
            List<List<?>> filteredRows = rows.stream()
1383
                    .filter(row -> row.size() > 5 && fofoIds.contains((Integer) row.get(5)))
1383
                    .filter(row -> row.size() > 5 && fofoIds.contains((Integer) row.get(5)))
1384
                    .collect(Collectors.toList());
1384
                    .collect(Collectors.toList());
1385
            this.sendMailToUser(headerGroup,filteredRows,sendToArray);
1385
            this.sendMailToUser(headerGroup,filteredRows,sendToArray);
1386
        }*/
1386
        }
1387
 
1387
 
1388
        this.sendMailToUser(
1388
        this.sendMailToUser(
1389
                headerGroup,
1389
                headerGroup,
1390
                rows,
1390
                rows,
1391
                new String[]{
1391
                new String[]{
1392
                        "ranu.rajput@smartdukaan.com"
1392
                        "ranu.rajput@smartdukaan.com",
1393
                       /* "niranjan.kala@smartdukaan.com",
1393
                        "niranjan.kala@smartdukaan.com",
1394
                        "nivesh.mathur@smartdukaan.com",
1394
                        "nivesh.mathur@smartdukaan.com",
1395
                        "deena.nath@smartdukaan.com",
1395
                        "deena.nath@smartdukaan.com",
1396
                        "santosh.giri@smartdukaan.com"*/
1396
                        "santosh.giri@smartdukaan.com"
1397
                }
1397
                }
1398
        );
1398
        );
1399
 
1399
 
1400
        LOGGER.info("[BI_REPORT] DONE batch-optimized generateBiReportExcel; totalMs={}, retailers={}, rows={}",
1400
        LOGGER.info("[BI_REPORT] DONE batch-optimized generateBiReportExcel; totalMs={}, retailers={}, rows={}",
1401
                System.currentTimeMillis() - __biReportStartMs, retailerIds.size(), rows.size());
1401
                System.currentTimeMillis() - __biReportStartMs, retailerIds.size(), rows.size());