| Line 302... |
Line 302... |
| 302 |
|
302 |
|
| 303 |
@RequestMapping(value = "/getCatalogMovementByBrand", method = RequestMethod.GET)
|
303 |
@RequestMapping(value = "/getCatalogMovementByBrand", method = RequestMethod.GET)
|
| 304 |
public String getCatalogMovementByBrand(HttpServletRequest request, Model model, @RequestParam String brand) throws Exception {
|
304 |
public String getCatalogMovementByBrand(HttpServletRequest request, Model model, @RequestParam String brand) throws Exception {
|
| 305 |
|
305 |
|
| 306 |
List<CategorisedCatalogListModel> categorisedCatalogListModels = categorisedCatalogRepository.getBrandWiseCatalogMovement(brand);
|
306 |
List<CategorisedCatalogListModel> categorisedCatalogListModels = categorisedCatalogRepository.getBrandWiseCatalogMovement(brand);
|
| 307 |
|
- |
|
| - |
|
307 |
List<Catalog> catalogs = new ArrayList<>();
|
| 308 |
List<Catalog> catalogs = catalogRepository.selectAllByBrand(brand, ProfitMandiConstants.MOBILE_CATEGORY_ID);
|
308 |
List<Catalog> mobileCatalogs = catalogRepository.selectAllByBrand(brand, ProfitMandiConstants.MOBILE_CATEGORY_ID);
|
| - |
|
309 |
List<Catalog> tabletCatalogs = catalogRepository.selectAllByBrand(brand, ProfitMandiConstants.TABLET_CATEGORY_ID);
|
| - |
|
310 |
catalogs.addAll(mobileCatalogs);
|
| - |
|
311 |
catalogs.addAll(tabletCatalogs);
|
| 309 |
|
312 |
|
| 310 |
List<CatalogMovingEnum> catalogMovingEnumList = Arrays.asList(CatalogMovingEnum.values());
|
313 |
List<CatalogMovingEnum> catalogMovingEnumList = Arrays.asList(CatalogMovingEnum.values());
|
| 311 |
|
314 |
|
| 312 |
model.addAttribute("categorisedCatalogListModels", categorisedCatalogListModels);
|
315 |
model.addAttribute("categorisedCatalogListModels", categorisedCatalogListModels);
|
| 313 |
model.addAttribute("catalogs", catalogs);
|
316 |
model.addAttribute("catalogs", catalogs);
|