/* (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.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()); } }