接口工程: p2p-exterface
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>p2p-parent</artifactId>
<groupId>com.bjpowernode.p2p</groupId>
<version>1.0.0</version>
<relativePath>../p2p-parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>p2p-exterface</artifactId>
</project>
service 包
package com.bjpowernode.p2p.service.loan;
import com.bjpowernode.p2p.model.loan.BidInfo;
import com.bjpowernode.p2p.model.vo.BidUserTop;
import com.bjpowernode.p2p.model.vo.ResultObject;
import java.util.List;
import java.util.Map;
/**
* ClassName:BidInfoService
* Package:com.bjpowernode.p2p.service.loan
* Description:
*
* @date:2018/9/17 15:12
* @author:guoxin@bjpowernode.com
*/
public interface BidInfoService {
/**
* 获取平台累计投资金额
* @return
*/
Double queryAllBidMoney();
/**
* 根据产品标识获取产品的所有投资记录(包含用户信息)
* @param loanId
* @return
*/
List<BidInfo> queryBidInfoListByLoanId(Integer loanId);
/**
* 用户投资
* @param paramMap
* @return
*/
ResultObject invest(Map<String, Object> paramMap);
/**
* 从redis缓存中获取用户投资排行榜
* @return
*/
List<BidUserTop> queryBidUserTop();
}
package com.bjpowernode.p2p.service.loan;
/**
* ClassName:IncomeRecordService
* Package:com.bjpowernode.p2p.service.loan
* Description:
*
* @date:2018/9/25 9:28
* @author:guoxin@bjpowernode.com
*/
public interface IncomeRecordService {
/**
* 生成收益计划
*/
void generateIncomePlan();
/**
* 收益返还
*/
void generateIncomeBack();
}
package com.bjpowernode.p2p.service.loan;
import com.bjpowernode.p2p.model.loan.LoanInfo;
import com.bjpowernode.p2p.model.vo.PaginatinoVO;
import java.util.List;
import java.util.Map;
/**
* ClassName:LoanInfoService
* Package:com.bjpowernode.p2p.service.loan
* Description:
*
* @date:2018/9/17 11:27
* @author:guoxin@bjpowernode.com
*/
public interface LoanInfoService {
/**
* 获取平台历史平均年化收益率
* @return
*/
Double queryHistoryAverageRate();
/**
* 根据产品类型获取产品信息列表
* @param paramMap
* @return
*/
List<LoanInfo> queryLoanInfoListByProductType(Map<String, Object> paramMap);
/**
* 分页查询产品信息列表
* @param paramMap
* @return
*/
PaginatinoVO<LoanInfo> queryLoanInfoByPage(Map<String, Object> paramMap);
/**
* 根据产品标识获取产品详情
* @param id
* @return
*/
LoanInfo queryLoanInfoById(Integer id);
}
package com.bjpowernode.p2p.service.loan;
/**
* ClassName:OnlyNumberService
* Package:com.bjpowernode.p2p.service.loan
* Description:
*
* @date:2018/9/26 10:57
* @author:guoxin@bjpowernode.com
*/
public interface OnlyNumberService {
/**
* 获取redis的全局唯一数字
* @return
*/
Long getOnlyNumber();
}
package com.bjpowernode.p2p.service.loan;
import com.bjpowernode.p2p.model.loan.RechargeRecord;
import java.util.Map;
/**
* ClassName:RechargeRecordService
* Package:com.bjpowernode.p2p.service.loan
* Description:
*
* @date:2018/9/26 11:02
* @author:guoxin@bjpowernode.com
*/
public interface RechargeRecordService {
/**
* 新增充值记录
* @param rechargeRecord
* @return
*/
int addRechargeRecord(RechargeRecord rechargeRecord);
/**
* 根据充值订单号更新充值记录
* @param rechargeRecord
* @return
*/
int modifyRechargeRecordByRechargeNo(RechargeRecord rechargeRecord);
/**
* 用户充值
* @param paramMap
* @return
*/
int recharge(Map<String, Object> paramMap);
}
package com.bjpowernode.p2p.service.user;
import com.bjpowernode.p2p.model.user.FinanceAccount;
/**
* ClassName:FinanceAccountService
* Package:com.bjpowernode.p2p.service.user
* Description:
*
* @date:2018/9/20 16:46
* @author:guoxin@bjpowernode.com
*/
public interface FinanceAccountService {
/**
* 根据用户标识获取帐户信息
* @param uid
* @return
*/
FinanceAccount queryFinanceAccountByUid(Integer uid);
}
package com.bjpowernode.p2p.service.user;
import com.bjpowernode.p2p.model.user.User;
import com.bjpowernode.p2p.model.vo.ResultObject;
/**
* ClassName:UserService
* Package:com.bjpowernode.p2p.service.user
* Description:
*
* @date:2018/9/17 14:51
* @author:guoxin@bjpowernode.com
*/
public interface UserService {
/**
* 获取平台注册总人数
* @return
*/
Long queryAllUserCount();
/**
* 根据手机号查询用户信息
* @param phone
* @return
*/
User queryUserByPhone(String phone);
/**
* 用户注册
* @param phone
* @param loginPassword
* @return
*/
ResultObject register(String phone, String loginPassword);
/**
* 根据用户标识更新用户信息
* @param user
* @return
*/
int modifyUserById(User user);
/**
* 用户登录
* @param phone
* @param loginPassword
* @return
*/
User login(String phone, String loginPassword);
}
package com.bjpowernode.p2p.model.loan;
import com.bjpowernode.p2p.model.user.User;
import java.io.Serializable;
import java.util.Date;
public class BidInfo implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_bid_info.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_bid_info.loan_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer loanId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_bid_info.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer uid;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_bid_info.bid_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double bidMoney;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_bid_info.bid_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date bidTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_bid_info.bid_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer bidStatus;
private User user;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_bid_info.id
*
* @return the value of b_bid_info.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_bid_info.id
*
* @param id the value for b_bid_info.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_bid_info.loan_id
*
* @return the value of b_bid_info.loan_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getLoanId() {
return loanId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_bid_info.loan_id
*
* @param loanId the value for b_bid_info.loan_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setLoanId(Integer loanId) {
this.loanId = loanId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_bid_info.uid
*
* @return the value of b_bid_info.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getUid() {
return uid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_bid_info.uid
*
* @param uid the value for b_bid_info.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setUid(Integer uid) {
this.uid = uid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_bid_info.bid_money
*
* @return the value of b_bid_info.bid_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getBidMoney() {
return bidMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_bid_info.bid_money
*
* @param bidMoney the value for b_bid_info.bid_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidMoney(Double bidMoney) {
this.bidMoney = bidMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_bid_info.bid_time
*
* @return the value of b_bid_info.bid_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getBidTime() {
return bidTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_bid_info.bid_time
*
* @param bidTime the value for b_bid_info.bid_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidTime(Date bidTime) {
this.bidTime = bidTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_bid_info.bid_status
*
* @return the value of b_bid_info.bid_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getBidStatus() {
return bidStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_bid_info.bid_status
*
* @param bidStatus the value for b_bid_info.bid_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidStatus(Integer bidStatus) {
this.bidStatus = bidStatus;
}
}
package com.bjpowernode.p2p.model.loan;
import java.io.Serializable;
import java.util.Date;
public class IncomeRecord implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer uid;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.loan_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer loanId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.bid_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer bidId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.bid_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double bidMoney;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.income_date
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date incomeDate;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.income_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double incomeMoney;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_income_record.income_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer incomeStatus;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.id
*
* @return the value of b_income_record.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.id
*
* @param id the value for b_income_record.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.uid
*
* @return the value of b_income_record.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getUid() {
return uid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.uid
*
* @param uid the value for b_income_record.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setUid(Integer uid) {
this.uid = uid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.loan_id
*
* @return the value of b_income_record.loan_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getLoanId() {
return loanId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.loan_id
*
* @param loanId the value for b_income_record.loan_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setLoanId(Integer loanId) {
this.loanId = loanId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.bid_id
*
* @return the value of b_income_record.bid_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getBidId() {
return bidId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.bid_id
*
* @param bidId the value for b_income_record.bid_id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidId(Integer bidId) {
this.bidId = bidId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.bid_money
*
* @return the value of b_income_record.bid_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getBidMoney() {
return bidMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.bid_money
*
* @param bidMoney the value for b_income_record.bid_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidMoney(Double bidMoney) {
this.bidMoney = bidMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.income_date
*
* @return the value of b_income_record.income_date
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getIncomeDate() {
return incomeDate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.income_date
*
* @param incomeDate the value for b_income_record.income_date
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setIncomeDate(Date incomeDate) {
this.incomeDate = incomeDate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.income_money
*
* @return the value of b_income_record.income_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getIncomeMoney() {
return incomeMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.income_money
*
* @param incomeMoney the value for b_income_record.income_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setIncomeMoney(Double incomeMoney) {
this.incomeMoney = incomeMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_income_record.income_status
*
* @return the value of b_income_record.income_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getIncomeStatus() {
return incomeStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_income_record.income_status
*
* @param incomeStatus the value for b_income_record.income_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setIncomeStatus(Integer incomeStatus) {
this.incomeStatus = incomeStatus;
}
}
package com.bjpowernode.p2p.model.loan;
import java.io.Serializable;
import java.util.Date;
public class LoanInfo implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_name
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String productName;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.rate
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double rate;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.cycle
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer cycle;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.release_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date releaseTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_type
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer productType;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_no
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String productNo;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double productMoney;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.left_product_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double leftProductMoney;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.bid_min_limit
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double bidMinLimit;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.bid_max_limit
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double bidMaxLimit;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer productStatus;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_full_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date productFullTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.version
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer version;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_loan_info.product_desc
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String productDesc;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.id
*
* @return the value of b_loan_info.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.id
*
* @param id the value for b_loan_info.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_name
*
* @return the value of b_loan_info.product_name
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getProductName() {
return productName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_name
*
* @param productName the value for b_loan_info.product_name
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductName(String productName) {
this.productName = productName == null ? null : productName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.rate
*
* @return the value of b_loan_info.rate
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getRate() {
return rate;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.rate
*
* @param rate the value for b_loan_info.rate
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setRate(Double rate) {
this.rate = rate;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.cycle
*
* @return the value of b_loan_info.cycle
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getCycle() {
return cycle;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.cycle
*
* @param cycle the value for b_loan_info.cycle
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setCycle(Integer cycle) {
this.cycle = cycle;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.release_time
*
* @return the value of b_loan_info.release_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getReleaseTime() {
return releaseTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.release_time
*
* @param releaseTime the value for b_loan_info.release_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setReleaseTime(Date releaseTime) {
this.releaseTime = releaseTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_type
*
* @return the value of b_loan_info.product_type
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getProductType() {
return productType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_type
*
* @param productType the value for b_loan_info.product_type
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductType(Integer productType) {
this.productType = productType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_no
*
* @return the value of b_loan_info.product_no
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getProductNo() {
return productNo;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_no
*
* @param productNo the value for b_loan_info.product_no
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductNo(String productNo) {
this.productNo = productNo == null ? null : productNo.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_money
*
* @return the value of b_loan_info.product_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getProductMoney() {
return productMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_money
*
* @param productMoney the value for b_loan_info.product_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductMoney(Double productMoney) {
this.productMoney = productMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.left_product_money
*
* @return the value of b_loan_info.left_product_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getLeftProductMoney() {
return leftProductMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.left_product_money
*
* @param leftProductMoney the value for b_loan_info.left_product_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setLeftProductMoney(Double leftProductMoney) {
this.leftProductMoney = leftProductMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.bid_min_limit
*
* @return the value of b_loan_info.bid_min_limit
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getBidMinLimit() {
return bidMinLimit;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.bid_min_limit
*
* @param bidMinLimit the value for b_loan_info.bid_min_limit
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidMinLimit(Double bidMinLimit) {
this.bidMinLimit = bidMinLimit;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.bid_max_limit
*
* @return the value of b_loan_info.bid_max_limit
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getBidMaxLimit() {
return bidMaxLimit;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.bid_max_limit
*
* @param bidMaxLimit the value for b_loan_info.bid_max_limit
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setBidMaxLimit(Double bidMaxLimit) {
this.bidMaxLimit = bidMaxLimit;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_status
*
* @return the value of b_loan_info.product_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getProductStatus() {
return productStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_status
*
* @param productStatus the value for b_loan_info.product_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductStatus(Integer productStatus) {
this.productStatus = productStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_full_time
*
* @return the value of b_loan_info.product_full_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getProductFullTime() {
return productFullTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_full_time
*
* @param productFullTime the value for b_loan_info.product_full_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductFullTime(Date productFullTime) {
this.productFullTime = productFullTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.version
*
* @return the value of b_loan_info.version
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getVersion() {
return version;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.version
*
* @param version the value for b_loan_info.version
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setVersion(Integer version) {
this.version = version;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_loan_info.product_desc
*
* @return the value of b_loan_info.product_desc
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getProductDesc() {
return productDesc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_loan_info.product_desc
*
* @param productDesc the value for b_loan_info.product_desc
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setProductDesc(String productDesc) {
this.productDesc = productDesc == null ? null : productDesc.trim();
}
}
package com.bjpowernode.p2p.model.loan;
import java.io.Serializable;
import java.util.Date;
public class RechargeRecord implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer uid;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.recharge_no
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String rechargeNo;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.recharge_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String rechargeStatus;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.recharge_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double rechargeMoney;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.recharge_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date rechargeTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column b_recharge_record.recharge_desc
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String rechargeDesc;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.id
*
* @return the value of b_recharge_record.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.id
*
* @param id the value for b_recharge_record.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.uid
*
* @return the value of b_recharge_record.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getUid() {
return uid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.uid
*
* @param uid the value for b_recharge_record.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setUid(Integer uid) {
this.uid = uid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.recharge_no
*
* @return the value of b_recharge_record.recharge_no
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getRechargeNo() {
return rechargeNo;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.recharge_no
*
* @param rechargeNo the value for b_recharge_record.recharge_no
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setRechargeNo(String rechargeNo) {
this.rechargeNo = rechargeNo == null ? null : rechargeNo.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.recharge_status
*
* @return the value of b_recharge_record.recharge_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getRechargeStatus() {
return rechargeStatus;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.recharge_status
*
* @param rechargeStatus the value for b_recharge_record.recharge_status
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setRechargeStatus(String rechargeStatus) {
this.rechargeStatus = rechargeStatus == null ? null : rechargeStatus.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.recharge_money
*
* @return the value of b_recharge_record.recharge_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getRechargeMoney() {
return rechargeMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.recharge_money
*
* @param rechargeMoney the value for b_recharge_record.recharge_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setRechargeMoney(Double rechargeMoney) {
this.rechargeMoney = rechargeMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.recharge_time
*
* @return the value of b_recharge_record.recharge_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getRechargeTime() {
return rechargeTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.recharge_time
*
* @param rechargeTime the value for b_recharge_record.recharge_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setRechargeTime(Date rechargeTime) {
this.rechargeTime = rechargeTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column b_recharge_record.recharge_desc
*
* @return the value of b_recharge_record.recharge_desc
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getRechargeDesc() {
return rechargeDesc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column b_recharge_record.recharge_desc
*
* @param rechargeDesc the value for b_recharge_record.recharge_desc
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setRechargeDesc(String rechargeDesc) {
this.rechargeDesc = rechargeDesc == null ? null : rechargeDesc.trim();
}
}
package com.bjpowernode.p2p.model.user;
import java.io.Serializable;
public class FinanceAccount implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_finance_account.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_finance_account.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer uid;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_finance_account.available_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Double availableMoney;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_finance_account.id
*
* @return the value of u_finance_account.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_finance_account.id
*
* @param id the value for u_finance_account.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_finance_account.uid
*
* @return the value of u_finance_account.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getUid() {
return uid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_finance_account.uid
*
* @param uid the value for u_finance_account.uid
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setUid(Integer uid) {
this.uid = uid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_finance_account.available_money
*
* @return the value of u_finance_account.available_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Double getAvailableMoney() {
return availableMoney;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_finance_account.available_money
*
* @param availableMoney the value for u_finance_account.available_money
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setAvailableMoney(Double availableMoney) {
this.availableMoney = availableMoney;
}
}
package com.bjpowernode.p2p.model.user;
import java.io.Serializable;
import java.util.Date;
public class User implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.phone
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String phone;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.login_password
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String loginPassword;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.name
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String name;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.id_card
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String idCard;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.add_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date addTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.last_login_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private Date lastLoginTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column u_user.header_image
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
private String headerImage;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.id
*
* @return the value of u_user.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.id
*
* @param id the value for u_user.id
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.phone
*
* @return the value of u_user.phone
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getPhone() {
return phone;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.phone
*
* @param phone the value for u_user.phone
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setPhone(String phone) {
this.phone = phone == null ? null : phone.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.login_password
*
* @return the value of u_user.login_password
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getLoginPassword() {
return loginPassword;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.login_password
*
* @param loginPassword the value for u_user.login_password
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setLoginPassword(String loginPassword) {
this.loginPassword = loginPassword == null ? null : loginPassword.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.name
*
* @return the value of u_user.name
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.name
*
* @param name the value for u_user.name
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.id_card
*
* @return the value of u_user.id_card
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getIdCard() {
return idCard;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.id_card
*
* @param idCard the value for u_user.id_card
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setIdCard(String idCard) {
this.idCard = idCard == null ? null : idCard.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.add_time
*
* @return the value of u_user.add_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getAddTime() {
return addTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.add_time
*
* @param addTime the value for u_user.add_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setAddTime(Date addTime) {
this.addTime = addTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.last_login_time
*
* @return the value of u_user.last_login_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public Date getLastLoginTime() {
return lastLoginTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.last_login_time
*
* @param lastLoginTime the value for u_user.last_login_time
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setLastLoginTime(Date lastLoginTime) {
this.lastLoginTime = lastLoginTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column u_user.header_image
*
* @return the value of u_user.header_image
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public String getHeaderImage() {
return headerImage;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column u_user.header_image
*
* @param headerImage the value for u_user.header_image
*
* @mbggenerated Mon Sep 17 09:12:20 CST 2018
*/
public void setHeaderImage(String headerImage) {
this.headerImage = headerImage == null ? null : headerImage.trim();
}
}
以上是MyBatis逆向工程生成的bean 注意数据库表字段采用 例如 : a_b_c这样,才会生成驼峰命名的属性
VO对象
package com.bjpowernode.p2p.model.vo;
import java.io.Serializable;
/**
* ClassName:BidUserTop
* Package:com.bjpowernode.p2p.model.vo
* Description:
*
* @date:2018/9/25 12:05
* @author:guoxin@bjpowernode.com
*/
public class BidUserTop implements Serializable {
/**
* 用户手机号码
*/
private String phone;
/**
* 分数:累计投资金额
*/
private Double score;
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Double getScore() {
return score;
}
public void setScore(Double score) {
this.score = score;
}
}
PaginatinoVO.java
package com.bjpowernode.p2p.model.vo;
import java.io.Serializable;
import java.util.List;
/**
* ClassName:PaginatinoVO
* Package:com.bjpowernode.p2p.model.vo
* Description:
*
* @date:2018/9/18 12:10
* @author:guoxin@bjpowernode.com
*/
public class PaginatinoVO<T> implements Serializable {
/**
* 总记录条数
*/
private Long total;
/**
* 显示数据
*/
private List<T> dataList;
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
public List<T> getDataList() {
return dataList;
}
public void setDataList(List<T> dataList) {
this.dataList = dataList;
}
}
ResultObject.java
package com.bjpowernode.p2p.model.vo;
import java.io.Serializable;
/**
* ClassName:ResultObject
* Package:com.bjpowernode.p2p.model.vo
* Description:
*
* @date:2018/9/20 10:35
* @author:guoxin@bjpowernode.com
*/
public class ResultObject implements Serializable {
/**
* 错误码
*/
private String errorCode;
public String getErrorCode() {
return errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
}