| Line 272... |
Line 272... |
| 272 |
}
|
272 |
}
|
| 273 |
LOGGER.info("monthValueMap" + monthValueMap);
|
273 |
LOGGER.info("monthValueMap" + monthValueMap);
|
| 274 |
model.addAttribute("monthValueMap", monthValueMap);
|
274 |
model.addAttribute("monthValueMap", monthValueMap);
|
| 275 |
model.addAttribute("investments", fofoUser.getInvestments(fofoId));
|
275 |
model.addAttribute("investments", fofoUser.getInvestments(fofoId));
|
| 276 |
model.addAttribute("isInvestmentOk",
|
276 |
model.addAttribute("isInvestmentOk",
|
| 277 |
partnerInvestmentService.isInvestmentOk(fofoId, 10, ProfitMandiConstants.CUTOFF_INVESTMENT));
|
277 |
partnerInvestmentService.isInvestmentOk(fofoId, ProfitMandiConstants.MIN_INVESTMENT_PERCENTAGE, ProfitMandiConstants.CUTOFF_INVESTMENT));
|
| 278 |
} catch (ProfitMandiBusinessException e) {
|
278 |
} catch (ProfitMandiBusinessException e) {
|
| 279 |
LOGGER.error("FofoStore Code not found of fofoId {}", fofoId);
|
279 |
LOGGER.error("FofoStore Code not found of fofoId {}", fofoId);
|
| 280 |
|
280 |
|
| 281 |
}
|
281 |
}
|
| 282 |
|
282 |
|
| Line 454... |
Line 454... |
| 454 |
List<CreateOfferRequest> publishedOffers = offerService.getPublishedOffers(loginDetails.getFofoId(),
|
454 |
List<CreateOfferRequest> publishedOffers = offerService.getPublishedOffers(loginDetails.getFofoId(),
|
| 455 |
YearMonth.from(LocalDateTime.now()));
|
455 |
YearMonth.from(LocalDateTime.now()));
|
| 456 |
model.addAttribute("publishedOffers", publishedOffers);
|
456 |
model.addAttribute("publishedOffers", publishedOffers);
|
| 457 |
model.addAttribute("investments", fofoUser.getInvestments(loginDetails.getFofoId()));
|
457 |
model.addAttribute("investments", fofoUser.getInvestments(loginDetails.getFofoId()));
|
| 458 |
model.addAttribute("isInvestmentOk", partnerInvestmentService.isInvestmentOk(loginDetails.getFofoId(),
|
458 |
model.addAttribute("isInvestmentOk", partnerInvestmentService.isInvestmentOk(loginDetails.getFofoId(),
|
| 459 |
10, ProfitMandiConstants.CUTOFF_INVESTMENT));
|
459 |
ProfitMandiConstants.MIN_INVESTMENT_PERCENTAGE, ProfitMandiConstants.CUTOFF_INVESTMENT));
|
| 460 |
|
460 |
|
| 461 |
double currentMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(),
|
461 |
double currentMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(),
|
| 462 |
currentMonthStart, currentMonthEnd) / 2;
|
462 |
currentMonthStart, currentMonthEnd) / 2;
|
| 463 |
double lastMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), lastMonthStart,
|
463 |
double lastMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), lastMonthStart,
|
| 464 |
currentMonthStart) / 2;
|
464 |
currentMonthStart) / 2;
|