Subversion Repositories SmartDukaan

Rev

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

Rev 27559 Rev 27628
Line 64... Line 64...
64
 
64
 
65
	@Autowired
65
	@Autowired
66
	PartnerTypeChangeService partnerTypeChangeService;
66
	PartnerTypeChangeService partnerTypeChangeService;
67
 
67
 
68
	@Override
68
	@Override
69
	@Cacheable(value = "partnerStats", cacheManager = "thirtyMinsTimeOutCacheManager")
69
	// @Cacheable(value = "partnerStats", cacheManager =
-
 
70
	// "thirtyMinsTimeOutCacheManager")
70
	public Map<Integer, PartnerDetailModel> getAllPartnerStats() throws ProfitMandiBusinessException {
71
	public Map<Integer, PartnerDetailModel> getAllPartnerStats() throws ProfitMandiBusinessException {
71
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
72
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
72
		Map<Integer, Double> lmtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(
73
		Map<Integer, Double> lmtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(
73
				curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), 0, false);
74
				curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), 0, false);
74
		Map<Integer, Double> mtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1),
75
		Map<Integer, Double> mtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1),