定存宝loaninfo/buyTransferLoanStepTwo
2015-09-21 22:27:46 6 举报
AI智能生成
定存宝是一款专为投资者设计的理财产品,它以银行定期存款为基础,结合互联网金融的优势,提供更高的收益率和更灵活的投资期限。定存宝的收益率通常高于传统的银行定期存款,同时,投资者可以根据自己的资金需求和风险承受能力,选择不同的投资期限。此外,定存宝还具有操作简单、资金安全、流动性强等特点,是投资者理财的好选择。无论是短期闲置资金还是长期储蓄,定存宝都能帮助投资者实现财富增值的目标。
作者其他创作
大纲/内容
用户
userInfoServices.queryBasicsInfoById(user.getId().toString())
每个用户能购买的定存宝数目
loanInfoService.getTransferCount
String sql="select sum(tenderMoney) from loanrecord " +
"where status = 1 and product = 1 and isSucceed = 1 and userbasicinfo_id = "+user.getId();
productService
getTransferPoolByPoolNum(poolNum) 募集池
"select * from transfer_pool where status = 0 and pool_num ="+poolNum;
getYearInterestByPoolNum 获取募集池的年化
"select value from system_config where name ='year_interest_pool"+poolNum+"'";
TransferPool 募集池
getSoldOut 是否已经卖完
getOpenAmount 可购余额
voucherService.useVoucher是否使用代金券
buyTransferLoan(request,user,poolNum,money,subMoney,poolId); 购买
Loanrecord 标的用户购买记录
loanrecord.setProduct(1);
loanrecord.setIsSucceed(3);
loanrecord.setPoolNum(poolNum);
loanrecord.setPoolId(poolId);
loanrecord.setStatus(0);
loanrecord.setTenderMoney(money.doubleValue()); 购买金额
Date now = DateTime.now().toDate();
loanrecord.setTenderTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(now));
DateTime time = DateTime.now().plusMonths(LoanSignService.getMonth(poolNum));
loanrecord.setEndTime(time.toString()); 锁定期
0 条评论
下一页