private void authAction(
      TAcceptBank abBean,
      String auditor,
      AuthRecordStatus accountStatus,
      AuthRecordStatus authStatus,
      MsgInfo.MsgContent msg) {
    TAuthRecord ar = new TAuthRecord();
    ar.setAbid(abBean.getId());
    ar = authRecordDao.query(ar);

    abBean.setAuthstatus(accountStatus);
    abBean.setUpdatetime(new Date());
    ar.setAuthstatus(authStatus);
    ar.setAuthor(auditor);

    acceptBankDAO.update(abBean);
    authRecordDao.update(ar);

    SystemMessageContent mc = new SystemMessageContent(msg.getVal());
    MessageInfoBean mi =
        new MessageInfoBean(
            MsgInfo.MsgBusinessType.BUSINESS_TYPE_COMPANY_AUTH,
            abBean.getId(),
            abBean.getCid(),
            mc);
    mi.setSendPushMsg(true);
    mi.setSendShotMsg(true);
    messageSender.msgSend(mi);
  }
  /* (non-Javadoc)提款人认证申请
   * @see com.appabc.pay.service.local.IAcceptBankService#reAuthApply(com.appabc.pay.bean.TAcceptBank)
   */
  @Override
  public void reAuthApply(TAcceptBank abBean) {
    TAcceptBank entity = this.acceptBankDAO.query(abBean.getId());

    abBean.setUpdatetime(Calendar.getInstance().getTime());
    abBean.setStatus(AcceptBankStatus.ACCEPT_BANK_STATUS_OTHER);
    abBean.setAuthstatus(AuthRecordStatus.AUTH_STATUS_CHECK_ING);
    abBean.setCid(entity.getCid());
    this.acceptBankDAO.update(abBean);

    // 认证记录添加
    if (!AuthRecordStatus.AUTH_STATUS_CHECK_ING.equals(entity.getAuthstatus())) {
      TAuthRecord ar = new TAuthRecord();
      ar.setType(AuthRecordType.AUTH_RECORD_TYPE_BANK);
      ar.setAuthstatus(AuthRecordStatus.AUTH_STATUS_CHECK_ING);
      ar.setCreatedate(new Date());
      ar.setAbid(abBean.getId()); // 提款人ID
      authRecordDao.save(ar);
    }

    // 更新图片关联
    if (StringUtils.isNotEmpty(abBean.getImgid())) {
      this.uploadImagesService.updateOtypeAndOid(
          abBean.getId(), FileInfo.FileOType.FILE_OTYPE_BANK, abBean.getImgid());
    }
  }
  /* (non-Javadoc)设置默认提款人
   * @see com.appabc.datas.service.company.IAcceptBankService#setDefault(java.lang.String)
   */
  @Override
  public void setDefault(String id) {
    TAcceptBank abBean = this.acceptBankDAO.query(id);

    TAcceptBank entity = new TAcceptBank();
    entity.setStatus(AcceptBankStatus.ACCEPT_BANK_STATUS_DEFAULT);
    entity.setCid(abBean.getCid());
    List<TAcceptBank> abList = this.acceptBankDAO.queryForList(entity);

    for (TAcceptBank ab : abList) {
      ab.setStatus(AcceptBankStatus.ACCEPT_BANK_STATUS_OTHER);
      this.acceptBankDAO.update(ab);
    }

    abBean.setStatus(AcceptBankStatus.ACCEPT_BANK_STATUS_DEFAULT);
    this.acceptBankDAO.update(abBean);
  }