/**
   * 商家信息校验及参数填充
   *
   * @param param
   * @param model
   */
  private void validationCompanyInfo(KDynamicReqParam param, Model model) {
    ValidationUtils.rejectEmpty(new Object[] {param.getCompanyid()}, new String[] {"companyid"});

    // 获取商家信息
    getCompany(param.getCompanyid(), model);
    // 获取商家公众号
    getWechatPubInfoID(param.getCompanyid(), model);
  }
 /**
  * 处理K米APP获取绑卡信息
  *
  * @param param
  * @param model
  */
 private void handleBindCardInfo(KDynamicReqParam param, Model model) {
   // 校验参数非空
   ValidationUtils.rejectEmpty(
       new Object[] {param.getCompanyid(), param.get("cardnum")},
       new String[] {"companyid", "cardnum"});
   // 获取商家信息
   getCompany(param.getCompanyid(), model);
   // 获取商家公众号
   getWechatPubInfoID(param.getCompanyid(), model);
   // 其他参数
   getOtherParam(param.any(), model);
 }
 /**
  * K米APP获取会员消费记录
  *
  * @param param
  * @param model
  */
 private void handleMemberConsumeInfo(KDynamicReqParam param, Model model) {
   // 校验参数非空
   ValidationUtils.rejectEmpty(
       new Object[] {
         param.getCompanyid(), param.get("kmid"), param.get("begintime"), param.get("endtime")
       },
       new String[] {"companyid", "kmid", "begintime", "endtime"});
   // 获取商家信息
   getCompany(param.getCompanyid(), model);
   // 获取商家公众号
   getWechatPubInfoID(param.getCompanyid(), model);
   // 其他参数
   getOtherParam(param.any(), model);
 }
  /**
   * 处理K米APP绑卡,校验参数,注入商家信息,微信公众号,其他参数
   *
   * @param param
   * @param model
   */
  private void handleBindCard(KDynamicReqParam param, Model model) {
    // 非空校验
    ValidationUtils.rejectEmpty(
        new Object[] {
          param.getCompanyid(), param.get("customerid"), param.get("cardnum"), param.get("moblie"),
        },
        new String[] {"companyid", "customerid", "cardnum", "moblie"});

    // 获取商家信息
    getCompany(param.getCompanyid(), model);
    // 获取商家公众号
    getWechatPubInfoID(param.getCompanyid(), model);
    // 其他参数
    getOtherParam(param.any(), model);
    // 获取K米APP会员ID
    getCustomerid(param.any(), model);
  }
 /**
  * K米APP完善会员资料
  *
  * @param param
  * @param model
  */
 private void handleUpdateMemberInfo(KDynamicReqParam param, Model model) {
   ValidationUtils.rejectEmpty(
       new Object[] {
         param.getCompanyid(),
         param.get("kmid"),
         param.get("membername"),
         param.get("sex"),
         param.get("mobile"),
         param.get("birthday")
       },
       new String[] {"companyid", "kmid", "membername", "sex", "mobile", "birthday"});
   // 获取商家信息
   getCompany(param.getCompanyid(), model);
   // 获取商家公众号
   getWechatPubInfoID(param.getCompanyid(), model);
   // 其他参数
   getOtherParam(param.any(), model);
 }
 /**
  * 在线会员申请
  *
  * @param param
  * @param model
  */
 private void handleApplyForMember(KDynamicReqParam param, Model model) {
   // 校验商家信息参数
   validationCompanyInfo(param, model);
   // 查询该功能是否开启
   checkParamer(
       param.getCompanyid(), AppConstants.KM_ONLINE_CUSTOMER, AppConstants.PARAMER_ACTIVE);
   // 其他参数信息校验
   ValidationUtils.rejectEmpty(
       new Object[] {
         param.getAsInteger("customerid"),
         param.getAsInteger("gradeid"),
         param.getAsString("membername"),
         param.getAsString("sex"),
         param.getAsString("mobile"),
         param.getAsString("birthday")
       },
       new String[] {"customerid", "gradeid", "membername", "sex", "mobile", "birthday"});
   // 其他参数   param.get("papertype"),param.get("papernumber"),
   model.addAttribute(OTHER_PARAM, param.any());
 }