/**
  * 批量保存品牌权重
  *
  * @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 param
  * @return
  * @throws Exception
  */
 @ResponseBody
 @RequestMapping(value = "/search", method = RequestMethod.POST)
 public JsonMessage search(ClientParameter param) throws Exception {
   Map<String, String> map = ParameterUtils.getMapFromParameter(param);
   Pagination page =
       new Pagination(
           MapUtils.getIntValue(map, "currentPage"), MapUtils.getIntValue(map, "pageSize"));
   BrandesWeightInfo searchBean = new BrandesWeightInfo();
   BeanUtils.populate(searchBean, map);
   return super.getJsonMessage(
       CommonConst.SUCCESS, brandesWeightInfoService.searchByClient(searchBean, page));
 }