| Line 59... |
Line 59... |
| 59 |
Map<Integer, Long> ticketMap = ticketRepository.selectAllOpenTicketsGroupByRetailer();
|
59 |
Map<Integer, Long> ticketMap = ticketRepository.selectAllOpenTicketsGroupByRetailer();
|
| 60 |
|
60 |
|
| 61 |
Map<Integer, String> fofoRetailerMap = retailerService.getAllFofoRetailerIdNameMap();
|
61 |
Map<Integer, String> fofoRetailerMap = retailerService.getAllFofoRetailerIdNameMap();
|
| 62 |
Map<Integer, PartnerDetailModel> allPartnerStats = new HashMap<>();
|
62 |
Map<Integer, PartnerDetailModel> allPartnerStats = new HashMap<>();
|
| 63 |
|
63 |
|
| 64 |
Map<Integer, PartnerDailyInvestment> investmentMap = partnerInvestmentService
|
64 |
Map<Integer, PartnerDailyInvestment> investmentMap = fofoRetailerMap.keySet().stream()
|
| - |
|
65 |
.map(x->{
|
| - |
|
66 |
try {
|
| 65 |
.getInvestment(new ArrayList<>(fofoRetailerMap.keySet()), 0).stream()
|
67 |
return partnerInvestmentService.getInvestment(x,0);
|
| - |
|
68 |
}catch(Exception e) {
|
| - |
|
69 |
LOGGER.info("Could not get invetment summary for {}", x);
|
| - |
|
70 |
return new PartnerDailyInvestment();
|
| - |
|
71 |
}
|
| - |
|
72 |
})
|
| 66 |
.collect(Collectors.toMap(x -> x.getFofoId(), x -> x));
|
73 |
.collect(Collectors.toMap(x->x.getFofoId(), x->x));
|
| 67 |
|
74 |
|
| 68 |
for (int fofoId : fofoRetailerMap.keySet()) {
|
75 |
for (int fofoId : fofoRetailerMap.keySet()) {
|
| 69 |
int hygieneCount = (int) hygieneDataRepository.selectHygieneCount(fofoId, true,
|
76 |
int hygieneCount = (int) hygieneDataRepository.selectHygieneCount(fofoId, true,
|
| 70 |
curDate.withDayOfMonth(1).minusMonths(1), curDate.plusMonths(1).withDayOfMonth(1));
|
77 |
curDate.withDayOfMonth(1).minusMonths(1), curDate.plusMonths(1).withDayOfMonth(1));
|
| 71 |
int invalidHygieneCount = (int) hygieneDataRepository.selectHygieneCount(fofoId, true,
|
78 |
int invalidHygieneCount = (int) hygieneDataRepository.selectHygieneCount(fofoId, true,
|