예제 #1
0
  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);
  }
예제 #2
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#modify(com.appabc.common.base.bean.BaseBean)
  */
 @Override
 public void modify(TAcceptBank entity) {
   acceptBankDAO.update(entity);
 }