コード例 #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#query(java.io.Serializable)
   */
  @Override
  public TAcceptBank query(Serializable id) {
    TAcceptBank ab = acceptBankDAO.query(id);

    // 	图片获取
    ab.setvImgList(
        this.uploadImagesService.getViewImgsByOidAndOtype(
            id.toString(), FileInfo.FileOType.FILE_OTYPE_BANK.getVal()));
    return ab;
  }
コード例 #3
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#delete(java.io.Serializable)
  */
 @Override
 public void delete(Serializable id) {
   try {
     acceptBankDAO.delete(id);
   } catch (Exception e) {
     logger.info("企业提款人删除失败, error message=" + e.getMessage());
     TAcceptBank ab = this.acceptBankDAO.query(id);
     if (ab != null) {
       logger.info("系统将进行软删除处理, update status=" + AcceptBankStatus.ACCEPT_BANK_STATUS_DEL);
       ab.setStatus(AcceptBankStatus.ACCEPT_BANK_STATUS_DEL);
       this.acceptBankDAO.update(ab);
     }
   }
 }
コード例 #4
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#query(com.appabc.common.base.bean.BaseBean)
  */
 @Override
 public TAcceptBank query(TAcceptBank entity) {
   return acceptBankDAO.query(entity);
 }
コード例 #5
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#delete(com.appabc.common.base.bean.BaseBean)
  */
 @Override
 public void delete(TAcceptBank entity) {
   acceptBankDAO.delete(entity);
 }
コード例 #6
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);
 }
コード例 #7
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#add(com.appabc.common.base.bean.BaseBean)
  */
 @Override
 public void add(TAcceptBank entity) {
   acceptBankDAO.save(entity);
 }
コード例 #8
0
 @Override
 public QueryContext<TAcceptBank> queryListForAuthFinished(
     QueryContext<TAcceptBank> queryContext) {
   return acceptBankDAO.queryListForAuditFinished(queryContext);
 }
コード例 #9
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#queryListForPagination(com.appabc.common.base.QueryContext)
  */
 @Override
 public QueryContext<TAcceptBank> queryListForPagination(QueryContext<TAcceptBank> qContext) {
   return acceptBankDAO.queryListForPagination(qContext);
 }
コード例 #10
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#queryForList(java.util.Map)
  */
 @Override
 public List<TAcceptBank> queryForList(Map<String, ?> args) {
   return acceptBankDAO.queryForList(args);
 }
コード例 #11
0
 /* (non-Javadoc)
  * @see com.appabc.common.base.service.IBaseService#queryForList(com.appabc.common.base.bean.BaseBean)
  */
 @Override
 public List<TAcceptBank> queryForList(TAcceptBank entity) {
   return acceptBankDAO.queryForList(entity);
 }