/**
  * 批量保存品牌权重
  *
  * @param param
  * @return
  * @throws Exception
  */
 @ResponseBody
 @RequestMapping(value = "/batchSave", method = RequestMethod.POST)
 @Deprecated
 public JsonMessage batchSave(ClientParameter param) {
   Map<String, String> map = ParameterUtils.getMapFromParameter(param);
   String data = MapUtils.getString(map, "dataList", "");
   List<BrandesWeightInfo> brandesWeightInfos =
       ParameterUtils.getListObjectFromParameter(data, BrandesWeightInfo.class);
   JsonMessage jsonMessage = super.getJsonMessage(CommonConst.SUCCESS);
   try {
     for (BrandesWeightInfo brandesWeightInfo : brandesWeightInfos) {
       if (!beanValidator(jsonMessage, brandesWeightInfo)) {
         return jsonMessage;
       }
       brandesWeightInfo.setUpdateTime(CalendarUtils.getCurrentLong());
       brandesWeightInfoService.updateByPrimaryKeySelective(brandesWeightInfo);
       BrandesInfo filter1 = new BrandesInfo();
       filter1.setRefrenceId(brandesWeightInfo.getBrandesId());
       // 修改品牌索引
       brandeSolrHandler.addBrandsInfoList(
           brandesInfoService.findBrandesInfoToSolr(filter1, null));
       // 修改旗下产品索引
       ProductInfo filter2 = new ProductInfo();
       filter2.setBrandsId(brandesWeightInfo.getBrandesId());
       List<ProductInfo> productInfos = productInfoService.findProductToSolr(filter2, null);
       productSolrHandler.addProductInfoList(productInfos);
     }
   } catch (BusinessException e) {
     logger.error("品牌权重接口,调用保存失败: " + e.getMessage());
     return this.getJsonMessage(e.getErrorCode());
   }
   return jsonMessage;
 }
 /**
  * 等级管理页面
  *
  * @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";
 }