Subversion Repositories SmartDukaan

Rev

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

Rev 34835 Rev 34928
Line 1168... Line 1168...
1168
    }
1168
    }
1169
 
1169
 
1170
    @GetMapping(value = "/partner/wodCompleteBrands", produces = MediaType.APPLICATION_JSON_VALUE)
1170
    @GetMapping(value = "/partner/wodCompleteBrands", produces = MediaType.APPLICATION_JSON_VALUE)
1171
    public ResponseEntity<?> getWodcompletBrands(HttpServletRequest request) throws Exception {
1171
    public ResponseEntity<?> getWodcompletBrands(HttpServletRequest request) throws Exception {
1172
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
1172
        UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
-
 
1173
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
-
 
1174
        if(!fofoStore.isInternal()){
1173
        BrandAndAddToCartEligibleModel brandAndAddToCartEligibleModel = brandsService.wodcompletBrands(userInfo.getRetailerId());
1175
        BrandAndAddToCartEligibleModel brandAndAddToCartEligibleModel = brandsService.wodcompletBrands(userInfo.getRetailerId());
1174
        return responseSender.ok(brandAndAddToCartEligibleModel);
1176
        return responseSender.ok(brandAndAddToCartEligibleModel);
1175
 
1177
 
-
 
1178
        }else {
-
 
1179
            return responseSender.ok(true);
-
 
1180
        }
-
 
1181
 
1176
    }
1182
    }
1177
 
1183
 
1178
}
1184
}
1179
1185