Subversion Repositories SmartDukaan

Rev

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

Rev 34640 Rev 35236
Line 960... Line 960...
960
 
960
 
961
    @RequestMapping(value = "/getBlockBrandMapping")
961
    @RequestMapping(value = "/getBlockBrandMapping")
962
    public String getBlockBrandMapping(HttpServletRequest request, Model model) throws Exception {
962
    public String getBlockBrandMapping(HttpServletRequest request, Model model) throws Exception {
963
 
963
 
964
        int fofoId = Utils.SYSTEM_PARTNER_ID;
964
        int fofoId = Utils.SYSTEM_PARTNER_ID;
965
        Set<String> brands = null;
-
 
966
 
-
 
967
        brands = mongoClient.getMongoBrands(fofoId, null, 3).stream().map(x -> (String) x.get("name"))
965
        Set<String> brands = brandsService.getBrands(fofoId, null, 3).stream().map(x -> x.getName()).collect(Collectors.toSet());
968
                .collect(Collectors.toSet());
-
 
969
 
966
 
970
        LOGGER.info("brands" + brands);
967
        LOGGER.info("brands" + brands);
971
        model.addAttribute("brands", brands);
968
        model.addAttribute("brands", brands);
972
 
969
 
973
        return "block-brand-mapping";
970
        return "block-brand-mapping";