/**
  * 设置等级
  *
  * @param dealerJoin
  * @param idAry
  * @return
  * @throws BusinessException
  * @author 施建波
  */
 @RequiresPermissions("brand:center")
 @ResponseBody
 @RequestMapping(value = "/setDealer")
 public JsonMessage setDealer(DealerJoin dealerJoin, String[] idAry) throws BusinessException {
   if (ArrayUtils.isEmpty(idAry) || StringUtils.isBlank(dealerJoin.getBrandsId())) {
     throw new BusinessException(CommonConst.PARAM_NULL);
   }
   UserPrincipal userPrincipal = OnLineUserUtils.getCurrentBrand();
   String brandId = brandLevelService.getBrandParentRefrenceId(userPrincipal.getRefrenceId());
   dealerJoin.setBrandId(brandId);
   dealerJoinService.updateDealerLevel(dealerJoin, idAry);
   return this.getJsonMessage(CommonConst.SUCCESS);
 }
 /**
  * 获取合作经绡商
  *
  * @param pagination
  * @param dealerJoin
  * @param request
  * @return
  * @throws BusinessException
  */
 @RequiresPermissions("brand:center")
 @ResponseBody
 @RequestMapping(value = "/dealerList")
 public JsonMessage dealerList(
     Pagination pagination, DealerJoin dealerJoin, HttpServletRequest request)
     throws BusinessException {
   UserPrincipal userPrincipal = OnLineUserUtils.getCurrentBrand();
   String brandId = brandLevelService.getBrandParentRefrenceId(userPrincipal.getRefrenceId());
   dealerJoin.setBrandId(brandId);
   PaginateResult<Map<String, Object>> page =
       dealerJoinService.queryDealerJoinPage(pagination, dealerJoin);
   return this.getJsonMessage(CommonConst.SUCCESS, page);
 }