| Line 998... |
Line 998... |
| 998 |
|
998 |
|
| 999 |
Map<String, Long> rbmBilledCountMapFirstWeek = rbmBilledFofoIdsModelsFirstWeek.stream()
|
999 |
Map<String, Long> rbmBilledCountMapFirstWeek = rbmBilledFofoIdsModelsFirstWeek.stream()
|
| 1000 |
.filter(x -> x.getStatus().equals("Billed"))
|
1000 |
.filter(x -> x.getStatus().equals("Billed"))
|
| 1001 |
.collect(Collectors.groupingBy(RbmBilledFofoIdsModel::getRbmName, Collectors.counting()));
|
1001 |
.collect(Collectors.groupingBy(RbmBilledFofoIdsModel::getRbmName, Collectors.counting()));
|
| 1002 |
|
1002 |
|
| - |
|
1003 |
Map<String, Long> rbmTargetedFofoIdCountMap = rbmBilledFofoIdsModelsFirstWeek.stream()
|
| - |
|
1004 |
.collect(Collectors.groupingBy(
|
| - |
|
1005 |
RbmBilledFofoIdsModel::getRbmName, // Group by RBM Name
|
| - |
|
1006 |
Collectors.counting() // Count all fofoId entries for each RBM
|
| - |
|
1007 |
));
|
| - |
|
1008 |
|
| - |
|
1009 |
|
| - |
|
1010 |
|
| - |
|
1011 |
|
| 1003 |
|
1012 |
|
| 1004 |
// second week count of rbm partner billing
|
1013 |
// second week count of rbm partner billing
|
| 1005 |
|
1014 |
|
| 1006 |
LocalDate eightOfCurrentMonth = LocalDate.now().withDayOfMonth(8);
|
1015 |
LocalDate eightOfCurrentMonth = LocalDate.now().withDayOfMonth(8);
|
| 1007 |
LocalDate fifteenOfCurrentMonth = LocalDate.now().withDayOfMonth(15);
|
1016 |
LocalDate fifteenOfCurrentMonth = LocalDate.now().withDayOfMonth(15);
|
| Line 1050... |
Line 1059... |
| 1050 |
model.addAttribute("totalTarget", totalTarget);
|
1059 |
model.addAttribute("totalTarget", totalTarget);
|
| 1051 |
model.addAttribute("totalAchieved", totalAchieved);
|
1060 |
model.addAttribute("totalAchieved", totalAchieved);
|
| 1052 |
model.addAttribute("sold15daysOldAgingModels", sold15daysOldAgingModels);
|
1061 |
model.addAttribute("sold15daysOldAgingModels", sold15daysOldAgingModels);
|
| 1053 |
model.addAttribute("our15DaysOldAgingStocks", our15DaysOldAgingStocks);
|
1062 |
model.addAttribute("our15DaysOldAgingStocks", our15DaysOldAgingStocks);
|
| 1054 |
|
1063 |
|
| - |
|
1064 |
model.addAttribute("rbmTargetedFofoIdCountMap", rbmTargetedFofoIdCountMap);
|
| 1055 |
model.addAttribute("rbmBilledCountMapFirstWeek", rbmBilledCountMapFirstWeek);
|
1065 |
model.addAttribute("rbmBilledCountMapFirstWeek", rbmBilledCountMapFirstWeek);
|
| 1056 |
model.addAttribute("rbmBilledCountMapSecondWeek", rbmBilledCountMapSecondWeek);
|
1066 |
model.addAttribute("rbmBilledCountMapSecondWeek", rbmBilledCountMapSecondWeek);
|
| 1057 |
model.addAttribute("rbmBilledCountMapThirdWeek", rbmBilledCountMapThirdWeek);
|
1067 |
model.addAttribute("rbmBilledCountMapThirdWeek", rbmBilledCountMapThirdWeek);
|
| 1058 |
model.addAttribute("rbmBilledCountMapFourthWeek", rbmBilledCountMapFourthWeek);
|
1068 |
model.addAttribute("rbmBilledCountMapFourthWeek", rbmBilledCountMapFourthWeek);
|
| 1059 |
model.addAttribute("rbmBilledCountMapMtd", rbmBilledCountMapMtd);
|
1069 |
model.addAttribute("rbmBilledCountMapMtd", rbmBilledCountMapMtd);
|