| Line 1024... |
Line 1024... |
| 1024 |
long totalSecondWeekCount = rbmBilledCountMapSecondWeek.values().stream().mapToLong(Long::longValue).sum();
|
1024 |
long totalSecondWeekCount = rbmBilledCountMapSecondWeek.values().stream().mapToLong(Long::longValue).sum();
|
| 1025 |
|
1025 |
|
| 1026 |
// third week count of rbm partner billing
|
1026 |
// third week count of rbm partner billing
|
| 1027 |
|
1027 |
|
| 1028 |
LocalDate sixteenOfCurrentMonth = LocalDate.now().withDayOfMonth(16);
|
1028 |
LocalDate sixteenOfCurrentMonth = LocalDate.now().withDayOfMonth(16);
|
| 1029 |
LocalDate twentyFirstOfCurrentMonth = LocalDate.now().withDayOfMonth(21);
|
1029 |
LocalDate twentySecondOfCurrentMonth = LocalDate.now().withDayOfMonth(22);
|
| 1030 |
|
1030 |
|
| 1031 |
List<RbmBilledFofoIdsModel> rbmBilledFofoIdsModelsThirdWeek = rbmTargetService.getDateWiseBilledFofoIdByRbm(sixteenOfCurrentMonth, twentyFirstOfCurrentMonth);
|
1031 |
List<RbmBilledFofoIdsModel> rbmBilledFofoIdsModelsThirdWeek = rbmTargetService.getDateWiseBilledFofoIdByRbm(sixteenOfCurrentMonth, twentySecondOfCurrentMonth);
|
| 1032 |
|
1032 |
|
| 1033 |
Map<String, Long> rbmBilledCountMapThirdWeek = rbmBilledFofoIdsModelsThirdWeek.stream()
|
1033 |
Map<String, Long> rbmBilledCountMapThirdWeek = rbmBilledFofoIdsModelsThirdWeek.stream()
|
| 1034 |
.filter(x -> x.getStatus().equals("Billed"))
|
1034 |
.filter(x -> x.getStatus().equals("Billed"))
|
| 1035 |
.collect(Collectors.groupingBy(RbmBilledFofoIdsModel::getRbmName, Collectors.counting()));
|
1035 |
.collect(Collectors.groupingBy(RbmBilledFofoIdsModel::getRbmName, Collectors.counting()));
|
| 1036 |
|
1036 |
|
| 1037 |
long totalThirdWeekCount = rbmBilledCountMapThirdWeek.values().stream().mapToLong(Long::longValue).sum();
|
1037 |
long totalThirdWeekCount = rbmBilledCountMapThirdWeek.values().stream().mapToLong(Long::longValue).sum();
|
| 1038 |
|
1038 |
|
| 1039 |
|
1039 |
|
| 1040 |
// fourth week count of rbm partner billing
|
1040 |
// fourth week count of rbm partner billing
|
| 1041 |
|
1041 |
|
| 1042 |
LocalDate twentySecondOfCurrentMonth = LocalDate.now().withDayOfMonth(22);
|
1042 |
LocalDate twentyThirdOfCurrentMonth = LocalDate.now().withDayOfMonth(23);
|
| 1043 |
LocalDate lastDayOfCurrentMonth = LocalDate.now().withDayOfMonth(LocalDate.now().lengthOfMonth());
|
1043 |
LocalDate lastDayOfCurrentMonth = LocalDate.now().withDayOfMonth(LocalDate.now().lengthOfMonth());
|
| 1044 |
|
1044 |
|
| 1045 |
List<RbmBilledFofoIdsModel> rbmBilledFofoIdsModelsFourthWeek = rbmTargetService.getDateWiseBilledFofoIdByRbm(twentySecondOfCurrentMonth, lastDayOfCurrentMonth);
|
1045 |
List<RbmBilledFofoIdsModel> rbmBilledFofoIdsModelsFourthWeek = rbmTargetService.getDateWiseBilledFofoIdByRbm(twentyThirdOfCurrentMonth, lastDayOfCurrentMonth);
|
| 1046 |
|
1046 |
|
| 1047 |
Map<String, Long> rbmBilledCountMapFourthWeek = rbmBilledFofoIdsModelsFourthWeek.stream()
|
1047 |
Map<String, Long> rbmBilledCountMapFourthWeek = rbmBilledFofoIdsModelsFourthWeek.stream()
|
| 1048 |
.filter(x -> x.getStatus().equals("Billed"))
|
1048 |
.filter(x -> x.getStatus().equals("Billed"))
|
| 1049 |
.collect(Collectors.groupingBy(RbmBilledFofoIdsModel::getRbmName, Collectors.counting()));
|
1049 |
.collect(Collectors.groupingBy(RbmBilledFofoIdsModel::getRbmName, Collectors.counting()));
|
| 1050 |
|
1050 |
|