Subversion Repositories SmartDukaan

Rev

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

Rev 27000 Rev 27084
Line 327... Line 327...
327
 
327
 
328
		Map<String, Object> salesMap = new LinkedHashMap<>();
328
		Map<String, Object> salesMap = new LinkedHashMap<>();
329
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
329
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
330
		int monthLength = LocalDate.now().lengthOfMonth();
330
		int monthLength = LocalDate.now().lengthOfMonth();
331
		Double todaySale = fofoOrderItemRepository
331
		Double todaySale = fofoOrderItemRepository
332
				.selectSumAmountGroupByRetailer(curDate, curDate.with(LocalTime.MAX), fofoId, false).get(fofoId);
332
				.selectSumMopGroupByRetailer(curDate, curDate.with(LocalTime.MAX), fofoId, false).get(fofoId);
333
		Double mtdSale = fofoOrderItemRepository
333
		Double mtdSale = fofoOrderItemRepository
334
				.selectSumAmountGroupByRetailer(curDate.withDayOfMonth(1), curDate.with(LocalTime.MAX), fofoId, false)
334
				.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1), curDate.with(LocalTime.MAX), fofoId, false)
335
				.get(fofoId);
335
				.get(fofoId);
336
		Double lmtdSale = fofoOrderItemRepository
336
		Double lmtdSale = fofoOrderItemRepository
337
				.selectSumAmountGroupByRetailer(curDate.withDayOfMonth(1).minusMonths(1),
337
				.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1).minusMonths(1),
338
						curDate.with(LocalTime.MAX).minusMonths(1), fofoId, false)
338
						curDate.with(LocalTime.MAX).minusMonths(1), fofoId, false)
339
				.get(fofoId);
339
				.get(fofoId);
340
 
340
 
341
		List<PartnerTargetDetails> partnerTargetDetails = partnerTargetRepository
341
		List<PartnerTargetDetails> partnerTargetDetails = partnerTargetRepository
342
				.selectAllGeEqAndLeEqStartDateAndEndDate(LocalDateTime.now());
342
				.selectAllGeEqAndLeEqStartDateAndEndDate(LocalDateTime.now());