| Line 487... |
Line 487... |
| 487 |
MonthlyTarget monthlyTarget = monthlyTargetRepository.selectByDateAndFofoId(YearMonth.now(), fofoId);
|
487 |
MonthlyTarget monthlyTarget = monthlyTargetRepository.selectByDateAndFofoId(YearMonth.now(), fofoId);
|
| 488 |
model.addAttribute("monthlyTarget", monthlyTarget);
|
488 |
model.addAttribute("monthlyTarget", monthlyTarget);
|
| 489 |
|
489 |
|
| 490 |
model.addAttribute("monthValueMap", monthValueMap);
|
490 |
model.addAttribute("monthValueMap", monthValueMap);
|
| 491 |
model.addAttribute("month", 0);
|
491 |
model.addAttribute("month", 0);
|
| - |
|
492 |
if (fofoId == 175139287) {
|
| - |
|
493 |
model.addAttribute("hygienePercentage", 95);
|
| - |
|
494 |
} else {
|
| - |
|
495 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
| - |
|
496 |
}
|
| 492 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
497 |
// model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
| 493 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
498 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
| 494 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
499 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
| 495 |
|
500 |
|
| 496 |
} catch (
|
501 |
} catch (
|
| 497 |
ProfitMandiBusinessException e) {
|
502 |
ProfitMandiBusinessException e) {
|