/* (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()); } }
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#authApply(com.appabc.pay.bean.TAcceptBank) */ @Override public void authApply(TAcceptBank abBean) { // 添加提款人信息 Date now = new Date(); abBean.setCreatetime(now); abBean.setStatus(AcceptBankStatus.ACCEPT_BANK_STATUS_OTHER); abBean.setAuthstatus(AuthRecordStatus.AUTH_STATUS_CHECK_ING); this.acceptBankDAO.save(abBean); // 认证记录添加 TAuthRecord ar = new TAuthRecord(); ar.setType(AuthRecordType.AUTH_RECORD_TYPE_BANK); ar.setAuthstatus(AuthRecordStatus.AUTH_STATUS_CHECK_ING); ar.setCreatedate(now); ar.setAbid(abBean.getId()); authRecordDao.save(ar); // 更新图片关联,个人用户提款人没有图片ID if (StringUtils.isNotEmpty(abBean.getImgid())) { this.uploadImagesService.updateOtypeAndOid( abBean.getId(), FileInfo.FileOType.FILE_OTYPE_BANK, abBean.getImgid()); } }