/**
  * 返回等级列表数据
  *
  * @param brandsId
  * @param page
  * @return
  * @throws BusinessException
  */
 @RequiresPermissions("brand:center")
 @ResponseBody
 @RequestMapping(value = "/list")
 public JsonMessage list(Pagination page, String brandsId) throws BusinessException {
   UserPrincipal userPrincipal = OnLineUserUtils.getCurrentBrand();
   String brandId = brandLevelService.getBrandParentRefrenceId(userPrincipal.getRefrenceId());
   PaginateResult<BrandLevel> paginateResult =
       brandLevelService.getBrandLevelsBy(brandId, brandsId, page);
   return this.getJsonMessage(CommonConst.SUCCESS, paginateResult);
 }
 /**
  * 设置等级页
  *
  * @param brandsId
  * @param request
  * @param model
  * @param page
  * @return
  * @throws BusinessException
  */
 @RequiresPermissions("brand:center")
 @RequestMapping(value = "/setup")
 public String setLevel(String brandsId, HttpServletRequest request, Model model, Pagination page)
     throws BusinessException {
   UserPrincipal userPrincipal = OnLineUserUtils.getCurrentBrand();
   String brandId = brandLevelService.getBrandParentRefrenceId(userPrincipal.getRefrenceId());
   List<BrandsInfoModel> brandesInfoList = brandesInfoService.getCooperatedBrandes(brandId);
   model.addAttribute("brandesInfoList", brandesInfoList);
   if (StringUtils.isNotBlank(brandsId)) {
     List<BrandLevel> levelList = brandLevelService.getBrandLevelsBy(brandId, brandsId);
     model.addAttribute("levelList", levelList);
   }
   return "brand/list_level_dealer";
 }