| Line 1571... |
Line 1571... |
| 1571 |
model.addAttribute("accesoriesmtdsale", accesoriesmtdsale);
|
1571 |
model.addAttribute("accesoriesmtdsale", accesoriesmtdsale);
|
| 1572 |
model.addAttribute("customRetailer", customRetailer);
|
1572 |
model.addAttribute("customRetailer", customRetailer);
|
| 1573 |
return "partner-brand-mtd-sale";
|
1573 |
return "partner-brand-mtd-sale";
|
| 1574 |
}
|
1574 |
}
|
| 1575 |
|
1575 |
|
| - |
|
1576 |
@RequestMapping(value = "/getPatnerBrandWiseLMTDSale", method = RequestMethod.GET)
|
| - |
|
1577 |
public String getPatnerBrandWiseLMTDSale(HttpServletRequest request,
|
| - |
|
1578 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
| - |
|
1579 |
LocalDateTime curDate = LocalDate.now().atStartOfDay();
|
| - |
|
1580 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(fofoId);
|
| - |
|
1581 |
Map<String, Double> brandLMtdAmount = fofoOrderItemRepository.selectSumAmountGroupByBrand(
|
| - |
|
1582 |
curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), fofoId);
|
| - |
|
1583 |
|
| - |
|
1584 |
Double accesorieslmtdsale = fofoOrderRepository
|
| - |
|
1585 |
.selectSumSaleGroupByFofoIdsForMobileOrAccessories(fofoId, curDate.withDayOfMonth(1).minusMonths(1),
|
| - |
|
1586 |
curDate.with(LocalTime.MAX).minusMonths(1), Optional.of(false))
|
| - |
|
1587 |
.get(fofoId);
|
| - |
|
1588 |
model.addAttribute("brandLMtdAmount", brandLMtdAmount);
|
| - |
|
1589 |
model.addAttribute("accesorieslmtdsale", accesorieslmtdsale);
|
| - |
|
1590 |
model.addAttribute("customRetailer", customRetailer);
|
| - |
|
1591 |
return "partner-brand-lmtd-sale";
|
| - |
|
1592 |
}
|
| - |
|
1593 |
|
| 1576 |
}
|
1594 |
}
|