Subversion Repositories SmartDukaan

Rev

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

Rev 26479 Rev 27016
Line 50... Line 50...
50
 
50
 
51
	@Autowired
51
	@Autowired
52
	HygieneDataRepository hygieneDataRepository;
52
	HygieneDataRepository hygieneDataRepository;
53
 
53
 
54
	@Override
54
	@Override
55
	@Cacheable(value = "partnerStats", cacheManager = "oneDayCacheManager")
55
	@Cacheable(value = "partnerStats", cacheManager = "thirtyMinsTimeOutCacheManager")
56
	public Map<Integer, PartnerDetailModel> getAllPartnerStats() throws ProfitMandiBusinessException {
56
	public Map<Integer, PartnerDetailModel> getAllPartnerStats() throws ProfitMandiBusinessException {
57
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
57
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
58
		Map<Integer, Double> lmtdSale = fofoOrderItemRepository.selectSumAmountGroupByRetailer(
58
		Map<Integer, Double> lmtdSale = fofoOrderItemRepository.selectSumAmountGroupByRetailer(
59
				curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), 0, false);
59
				curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), 0, false);
60
		Map<Integer, Double> mtdSale = fofoOrderItemRepository.selectSumAmountGroupByRetailer(curDate.withDayOfMonth(1),
60
		Map<Integer, Double> mtdSale = fofoOrderItemRepository.selectSumAmountGroupByRetailer(curDate.withDayOfMonth(1),