| Line 358... |
Line 358... |
| 358 |
LocalDateTime startOfMonth = LocalDate.now().withDayOfMonth(1).atStartOfDay();
|
358 |
LocalDateTime startOfMonth = LocalDate.now().withDayOfMonth(1).atStartOfDay();
|
| 359 |
LocalDateTime endOfMonth = LocalDateTime.now();
|
359 |
LocalDateTime endOfMonth = LocalDateTime.now();
|
| 360 |
String[] bcc = {"tarun.verma@smartdukaan.com"};
|
360 |
String[] bcc = {"tarun.verma@smartdukaan.com"};
|
| 361 |
// String[] bcc = {"tejus.lohani@smartdukaan.com"};
|
361 |
// String[] bcc = {"tejus.lohani@smartdukaan.com"};
|
| 362 |
|
362 |
|
| 363 |
// Get all RBM users
|
363 |
// Get all Sales users
|
| 364 |
List<AuthUser> authUsers = csService.getAuthUserIds(
|
364 |
List<AuthUser> authUsers = csService.getAuthUserIds(
|
| 365 |
ProfitMandiConstants.TICKET_CATEGORY_SALES,
|
365 |
ProfitMandiConstants.TICKET_CATEGORY_SALES,
|
| 366 |
Arrays.asList(EscalationType.L1)
|
366 |
Arrays.asList(EscalationType.L1)
|
| 367 |
);
|
367 |
);
|
| 368 |
|
368 |
|
| Line 472... |
Line 472... |
| 472 |
previousDay = startOfToday.with(LocalTime.MAX).minusDays(1);
|
472 |
previousDay = startOfToday.with(LocalTime.MAX).minusDays(1);
|
| 473 |
}
|
473 |
}
|
| 474 |
|
474 |
|
| 475 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailersInternalFalse();
|
475 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailersInternalFalse();
|
| 476 |
|
476 |
|
| - |
|
477 |
List<Integer> retailerIds = customRetailers.values().stream()
|
| - |
|
478 |
.filter(retailer -> {
|
| - |
|
479 |
String storeCode = retailer.getCode(); // adjust method name if different
|
| - |
|
480 |
return !storeCode.equalsIgnoreCase("UPGBN640") && !storeCode.equalsIgnoreCase("HRYN039");
|
| - |
|
481 |
})
|
| - |
|
482 |
.map(CustomRetailer::getPartnerId)
|
| - |
|
483 |
.collect(Collectors.toList());
|
| - |
|
484 |
|
| 477 |
List<Integer> retailerIds = customRetailers.values().stream().map(CustomRetailer::getPartnerId).collect(Collectors.toList());
|
485 |
// List<Integer> retailerIds = customRetailers.values().stream().map(CustomRetailer::getPartnerId).collect(Collectors.toList());
|
| 478 |
|
486 |
|
| 479 |
/* List<Integer> retailerIds = Arrays.asList(175139247,175139660);
|
487 |
/* List<Integer> retailerIds = Arrays.asList(175139247,175139660);
|
| 480 |
Map<Integer,CustomRetailer> customRetailers = retailerService.getFofoRetailers(retailerIds);*/
|
488 |
Map<Integer,CustomRetailer> customRetailers = retailerService.getFofoRetailers(retailerIds);*/
|
| 481 |
|
489 |
|
| 482 |
//partner daily investment
|
490 |
//partner daily investment
|