Subversion Repositories SmartDukaan

Rev

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

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