Subversion Repositories SmartDukaan

Rev

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

Rev 33408 Rev 33409
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) {