/**
  * 等级管理页面
  *
  * @param model
  * @return
  */
 @RequiresPermissions("brand:center")
 @RequestMapping(value = "/level")
 public String level(Model model) {
   try {
     UserPrincipal userPrincipal = OnLineUserUtils.getCurrentBrand();
     String brandId = brandLevelService.getBrandParentRefrenceId(userPrincipal.getRefrenceId());
     model.addAttribute("brandesInfos", brandesInfoService.getCooperatedBrandes(brandId));
   } catch (BusinessException e) {
     e.printStackTrace();
   }
   return "/brand/center_dealerlevel_manager";
 }
 /**
  * 设置等级页
  *
  * @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";
 }