| Line 207... |
Line 207... |
| 207 |
|
207 |
|
| 208 |
return fullAccesss;
|
208 |
return fullAccesss;
|
| 209 |
|
209 |
|
| 210 |
}
|
210 |
}
|
| 211 |
|
211 |
|
| 212 |
@RequestMapping(value = "/getCatalogDescriptionByBrands", method = RequestMethod.POST)
|
212 |
@RequestMapping(value = "/getCatalogDescriptionByBrands", method = RequestMethod.GET)
|
| 213 |
public String getTagListingItemsByBrand(HttpServletRequest request, @RequestBody List<String> brands, Model model) throws Exception {
|
213 |
public String getTagListingItemsByBrand(HttpServletRequest request, @RequestParam int categoryId, @RequestParam List<String> brands, Model model) throws Exception {
|
| 214 |
Map<Integer, String> catalogIdItemDescriptionMap = inventoryService
|
214 |
Map<Integer, String> catalogIdItemDescriptionMap = inventoryService
|
| 215 |
.getModelDescriptionMap(new HashSet<>(brands));
|
215 |
.getModelDescriptionMap(categoryId, brands);
|
| 216 |
model.addAttribute("catalogIdItemDescriptionMap", catalogIdItemDescriptionMap);
|
216 |
model.addAttribute("catalogIdItemDescriptionMap", catalogIdItemDescriptionMap);
|
| 217 |
// model.addAttribute("brands", inventoryService.getAllBrands());
|
217 |
// model.addAttribute("brands", inventoryService.getAllBrands());
|
| 218 |
|
218 |
|
| 219 |
return "tag-listing-items-description";
|
219 |
return "tag-listing-items-description";
|
| 220 |
}
|
220 |
}
|
| Line 222... |
Line 222... |
| 222 |
@RequestMapping(value = "/getBrandsByCategory", method = RequestMethod.GET)
|
222 |
@RequestMapping(value = "/getBrandsByCategory", method = RequestMethod.GET)
|
| 223 |
public String getTagListingItemsByBrand(HttpServletRequest request, @RequestParam int categoryId, Model model) throws Exception {
|
223 |
public String getTagListingItemsByBrand(HttpServletRequest request, @RequestParam int categoryId, Model model) throws Exception {
|
| 224 |
Set<String> brands = inventoryService
|
224 |
Set<String> brands = inventoryService
|
| 225 |
.getAllTagListingBrands(categoryId);
|
225 |
.getAllTagListingBrands(categoryId);
|
| 226 |
model.addAttribute("brands", brands);
|
226 |
model.addAttribute("brands", brands);
|
| - |
|
227 |
model.addAttribute("categoryId", categoryId);
|
| 227 |
|
228 |
|
| 228 |
return "tag-listing-brands";
|
229 |
return "tag-listing-brands";
|
| 229 |
}
|
230 |
}
|
| 230 |
|
231 |
|
| 231 |
@RequestMapping(value = "/schemes/update-schemes-page", method = RequestMethod.GET)
|
232 |
@RequestMapping(value = "/schemes/update-schemes-page", method = RequestMethod.GET)
|