Subversion Repositories SmartDukaan

Rev

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

Rev 25668 Rev 25674
Line 280... Line 280...
280
				currentMonthEnd)/2;
280
				currentMonthEnd)/2;
281
		double lastMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
281
		double lastMonthRating = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
282
				currentMonthEnd)/2;
282
				currentMonthEnd)/2;
283
		double ratingTillDate = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
283
		double ratingTillDate = hygieneDataRepository.selectRatingAvg(loginDetails.getFofoId(), currentMonthStart,
284
				currentMonthEnd)/2;
284
				currentMonthEnd)/2;
285
		model.addAttribute("currentMonthRating", currentMonthRating);
285
		model.addAttribute("currentMonthRating", Math.round(currentMonthRating*10)/10);
286
		model.addAttribute("lastMonthRating", lastMonthRating);
286
		model.addAttribute("lastMonthRating", Math.round(lastMonthRating*10)/10);
287
		model.addAttribute("ratingTillDate", ratingTillDate);
287
		model.addAttribute("ratingTillDate", Math.round(ratingTillDate*10)/10);
288
 
288
 
289
		long hygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), true, currentMonthStart,
289
		long hygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), true, currentMonthStart,
290
				currentMonthEnd);
290
				currentMonthEnd);
291
 
291
 
292
		long invalidHygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), false,
292
		long invalidHygieneCount = hygieneDataRepository.selectHygieneCount(loginDetails.getFofoId(), false,