| Line 477... |
Line 477... |
| 477 |
long invalidHygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), false, currentMonthStart, currentMonthEnd);
|
477 |
long invalidHygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), false, currentMonthStart, currentMonthEnd);
|
| 478 |
if (hygieneCount == 0 && invalidHygieneCount == 0) {
|
478 |
if (hygieneCount == 0 && invalidHygieneCount == 0) {
|
| 479 |
invalidHygieneCount = 1;
|
479 |
invalidHygieneCount = 1;
|
| 480 |
}
|
480 |
}
|
| 481 |
Map<Integer, String> monthValueMap = new HashMap<>();
|
481 |
Map<Integer, String> monthValueMap = new HashMap<>();
|
| 482 |
for (int i = 0; i <= 5; i++) {
|
482 |
for (int i = 0; i <= 12; i++) {
|
| 483 |
LocalDateTime startOfMonth = LocalDateTime.now().withDayOfMonth(1).minusMonths(i);
|
483 |
LocalDateTime startOfMonth = LocalDateTime.now().withDayOfMonth(1).minusMonths(i);
|
| 484 |
monthValueMap.put(i, startOfMonth.format(DateTimeFormatter.ofPattern("MMM''uu")));
|
484 |
monthValueMap.put(i, startOfMonth.format(DateTimeFormatter.ofPattern("MMM''uu")));
|
| 485 |
}
|
485 |
}
|
| 486 |
|
486 |
|
| 487 |
MonthlyTarget monthlyTarget = monthlyTargetRepository.selectByDateAndFofoId(YearMonth.now(), fofoId);
|
487 |
MonthlyTarget monthlyTarget = monthlyTargetRepository.selectByDateAndFofoId(YearMonth.now(), fofoId);
|