| 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 |
}
|
- |
|
| 497 |
// model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
492 |
model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
|
| 498 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
493 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
| 499 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
494 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
| 500 |
|
495 |
|
| 501 |
} catch (
|
496 |
} catch (
|
| 502 |
ProfitMandiBusinessException e) {
|
497 |
ProfitMandiBusinessException e) {
|