Subversion Repositories SmartDukaan

Rev

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

Rev 25664 Rev 25668
Line 275... Line 275...
275
		}
275
		}
276
 
276
 
277
		LocalDateTime currentMonthStart = LocalDateTime.now().withDayOfMonth(1);
277
		LocalDateTime currentMonthStart = LocalDateTime.now().withDayOfMonth(1);
278
		LocalDateTime currentMonthEnd = currentMonthStart.plusMonths(1).withDayOfMonth(1);
278
		LocalDateTime currentMonthEnd = currentMonthStart.plusMonths(1).withDayOfMonth(1);
279
		double currentMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
279
		double currentMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
280
				currentMonthEnd);
280
				currentMonthEnd)/2;
281
		double lastMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
281
		double lastMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
282
				currentMonthEnd);
282
				currentMonthEnd)/2;
283
		double ratingTillDate = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
283
		double ratingTillDate = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
284
				currentMonthEnd);
284
				currentMonthEnd)/2;
285
		model.addAttribute("currentMonthRating", currentMonthRating);
285
		model.addAttribute("currentMonthRating", currentMonthRating);
286
		model.addAttribute("lastMonthRating", lastMonthRating);
286
		model.addAttribute("lastMonthRating", lastMonthRating);
287
		model.addAttribute("ratingTillDate", ratingTillDate);
287
		model.addAttribute("ratingTillDate", ratingTillDate);
288
 
288
 
289
		long hygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), true, currentMonthStart,
289
		long hygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), true, currentMonthStart,