Subversion Repositories SmartDukaan

Rev

Rev 33310 | Rev 33408 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33310 Rev 33401
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);