Exemplo n.º 1
0
  /** 满标->放款不通过 */
  public static void fundraiseToLoanNotThrough(String sign) {
    checkAuthenticity();

    ErrorInfo error = new ErrorInfo();
    long bidId = Security.checkSign(sign, Constants.BID_ID_SIGN, Constants.VALID_TIME, error);

    if (bidId < 1) {
      flash.error(error.msg);

      auditingList();
    }

    Bid bid = new Bid();
    bid.auditBid = true;
    bid.id = bidId;
    bid.allocationSupervisorId = Supervisor.currSupervisor().id; // 审核人

    bid.fundraiseToLoanNotThrough(error);

    if (Constants.IPS_ENABLE && error.code >= 0) {
      Map<String, String> args = Payment.registerSubject(IPSConstants.BID_CANCEL_M, bid);

      render("@front.account.PaymentAction.registerSubject", args);
    }

    flash.error(error.msg);

    fullList();
  }
Exemplo n.º 2
0
  /** 审核中->募集中 */
  public static void auditToFundraise(String sign) {
    checkAuthenticity();

    ErrorInfo error = new ErrorInfo();
    long bidId = Security.checkSign(sign, Constants.BID_ID_SIGN, Constants.VALID_TIME, error);

    if (bidId < 1) {
      flash.error(error.msg);

      auditingList();
    }

    String suggest = params.get("suggest");

    if (StringUtils.isBlank(suggest)) {
      flash.error("数据有误!");

      auditingList();
    }

    Bid bid = new Bid();
    bid.auditBid = true;
    bid.id = bidId;
    bid.auditSuggest = suggest; // 审核意见
    bid.allocationSupervisorId = Supervisor.currSupervisor().id; // 审核人

    bid.auditToFundraise(error);
    flash.error(error.msg);

    auditingList();
  }
Exemplo n.º 3
0
  /** 历史记录 */
  public static void historyDetail(Date time, String signUserId) {
    ErrorInfo error = new ErrorInfo();
    long userId =
        Security.checkSign(signUserId, Constants.USER_ID_SIGN, Constants.VALID_TIME, error);

    if (userId < 1) renderText(error.msg);

    Map<String, String> historySituationMap = User.historySituation(userId, error); // 借款者历史记录情况

    render(time, historySituationMap);
  }
Exemplo n.º 4
0
  /** 举报记录 */
  public static void reportRecord(int currPage, String signUserId) {
    ErrorInfo error = new ErrorInfo();
    long userId =
        Security.checkSign(signUserId, Constants.USER_ID_SIGN, Constants.VALID_TIME, error);

    if (userId < 1) renderText(error.msg);

    PageBean<t_user_report_users> pageBean = new PageBean<t_user_report_users>();
    pageBean.currPage = currPage;
    pageBean.page = User.queryBidRecordByUser(pageBean, userId, error);

    render(pageBean);
  }
Exemplo n.º 5
0
  /** 资料列表 */
  public static void userItemsList(String signUserId, long productId, int status, String mark) {
    ErrorInfo error = new ErrorInfo();
    long userId =
        Security.checkSign(signUserId, Constants.USER_ID_SIGN, Constants.VALID_TIME, error);

    if (userId < 1) renderText(error.msg);

    List<v_user_audit_items> items = UserAuditItem.queryUserAuditItem(userId, productId, error);
    List<ProductAuditItem> requiredAuditItem =
        ProductAuditItem.queryAuditByProductMark(mark, false, Constants.NEED_AUDIT);

    render(items, requiredAuditItem, status);
  }
Exemplo n.º 6
0
  /** 提前借款->借款中不通过 */
  public static void advanceLoanToPeviewNotThrough(String sign) {
    checkAuthenticity();

    ErrorInfo error = new ErrorInfo();
    long bidId = Security.checkSign(sign, Constants.BID_ID_SIGN, Constants.VALID_TIME, error);

    if (bidId < 1) {
      flash.error(error.msg);

      auditingList();
    }

    Bid bid = new Bid();
    bid.auditBid = true;
    bid.id = bidId;

    String suggest = params.get("suggest");

    if (StringUtils.isBlank(suggest)) {
      flash.error("数据有误!");

      if (bid.hasInvestedAmount == bid.amount) fullList();

      fundraiseingList();
    }

    bid.auditSuggest = suggest; // 审核意见
    bid.allocationSupervisorId = Supervisor.currSupervisor().id; // 审核人

    bid.advanceLoanToPeviewNotThrough(error);

    if (Constants.IPS_ENABLE) {
      Map<String, String> args = Payment.registerSubject(IPSConstants.BID_CANCEL_B, bid);

      render("@front.account.PaymentAction.registerSubject", args);
    }

    flash.error(error.msg);

    if (bid.hasInvestedAmount == bid.amount) fullList();

    fundraiseingList();
  }
Exemplo n.º 7
0
  /** 管理员给用户发送站内信 */
  public static void sendMessages(String signUserId, String title, String content) {
    /* 解密userId */
    ErrorInfo error = new ErrorInfo();
    long userId =
        Security.checkSign(signUserId, Constants.USER_ID_SIGN, Constants.VALID_TIME, error);

    if (userId < 1) renderText(error.msg);

    if (StringUtils.isBlank(title) || StringUtils.isBlank(content)) renderText("数据有误!");

    StationLetter letter = new StationLetter();
    letter.senderSupervisorId = Supervisor.currSupervisor().id;
    letter.receiverUserId = userId;
    letter.title = title;
    letter.content = content;
    letter.sendToUserBySupervisor(error);

    renderText(error.msg);
  }
Exemplo n.º 8
0
  /** 审核中->提前借款 */
  public static void auditToadvanceLoan(String sign) {
    /* 解密BidId */
    ErrorInfo error = new ErrorInfo();
    long bidId = Security.checkSign(sign, Constants.BID_ID_SIGN, Constants.VALID_TIME, error);

    if (bidId < 1) {
      flash.error(error.msg);

      auditingList();
    }

    Bid bid = new Bid();
    bid.auditBid = true;
    bid.id = bidId;
    bid.allocationSupervisorId = Supervisor.currSupervisor().id; // 审核人

    bid.auditToadvanceLoan(error);
    flash.error(error.msg);

    auditingList();
  }
Exemplo n.º 9
0
  /** 满标->待放款 */
  public static void fundraiseToEaitLoan(String sign) {
    checkAuthenticity();

    ErrorInfo error = new ErrorInfo();
    long bidId = Security.checkSign(sign, Constants.BID_ID_SIGN, Constants.VALID_TIME, error);

    if (bidId < 1) {
      flash.error(error.msg);

      auditingList();
    }

    Bid bid = new Bid();
    bid.auditBid = true;
    bid.id = bidId;
    bid.allocationSupervisorId = Supervisor.currSupervisor().id; // 审核人

    bid.fundraiseToEaitLoan(error);
    flash.error(error.msg);

    fullList();
  }
Exemplo n.º 10
0
 public String getSign2() {
   return Security.addSign(this.bid_id, Constants.BID_ID_SIGN);
 }
Exemplo n.º 11
0
 /** 获取加密ID */
 public String getSign() {
   return Security.addSign(this.id, Constants.BILL_ID_SIGN);
 }
Exemplo n.º 12
0
  /** 获取加密ID */
  public String getSign() {
    if (null == this.sign) this.sign = Security.addSign(this.id, Constants.PRODUCT_ID_SIGN);

    return this.sign;
  }