| Line 53... |
Line 53... |
| 53 |
|
53 |
|
| 54 |
@Override
|
54 |
@Override
|
| 55 |
@Cacheable(value = "partnerStats", cacheManager = "thirtyMinsTimeOutCacheManager")
|
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.selectSumMopGroupByRetailer(
|
| 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.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1),
|
| 61 |
curDate.with(LocalTime.MAX), 0, false);
|
61 |
curDate.with(LocalTime.MAX), 0, false);
|
| 62 |
|
62 |
|
| 63 |
Map<Integer, Long> ticketMap = ticketRepository.selectAllOpenTicketsGroupByRetailer();
|
63 |
Map<Integer, Long> ticketMap = ticketRepository.selectAllOpenTicketsGroupByRetailer();
|
| 64 |
|
64 |
|
| 65 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
65 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|