package com.yeshi.fanli.entity.bus.user;
|
|
import java.math.BigDecimal;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.FetchType;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.Table;
|
|
import com.google.gson.annotations.Expose;
|
import com.yeshi.fanli.dto.HongBao;
|
|
/**
|
* 老的(1.2.3v之前)明细
|
* @author cxx
|
*
|
* @date 2018年1月29日
|
*/
|
@Entity
|
@Table(name="yeshi_ec_money_record")
|
@org.yeshi.utils.mybatis.Table("yeshi_ec_money_record")
|
public class MoneyRecord {
|
@Id
|
@GeneratedValue(strategy=GenerationType.AUTO)
|
@Column(name = "id")
|
@org.yeshi.utils.mybatis.Column(name="id")
|
@Expose
|
private Long id;
|
|
|
@org.yeshi.utils.mybatis.Column(name="uid")
|
@JoinColumn(name="`uid`")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private UserInfo userInfo;
|
|
@org.yeshi.utils.mybatis.Column(name="hid")
|
@JoinColumn(name="`hid`")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private HongBao hongBao; //来源
|
|
@org.yeshi.utils.mybatis.Column(name="money")
|
@Expose
|
private BigDecimal money; //金额
|
|
@org.yeshi.utils.mybatis.Column(name="title")
|
@Expose
|
private String title; //标题
|
|
@org.yeshi.utils.mybatis.Column(name="remark")
|
@Expose
|
private String remark; //备注
|
|
@org.yeshi.utils.mybatis.Column(name="createtime")
|
@Expose
|
private Long createtime; //交易时间
|
|
@org.yeshi.utils.mybatis.Column(name="type")
|
@Expose
|
private Integer type; //类型 1.已获取 2.申请中 3.已提现
|
|
|
@org.yeshi.utils.mybatis.Column(name="eid")
|
@JoinColumn(name="`eid`")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private Extract extract; //提现
|
|
/* private String newTitle;
|
|
private Integer newType;
|
|
private Integer mtype;
|
|
@ManyToOne
|
@JoinColumn(name="orderItemId")
|
private OrderItem orderItem;*/
|
|
public MoneyRecord() {
|
// TODO Auto-generated constructor stub
|
}
|
|
public MoneyRecord(UserInfo userInfo, HongBao hongBao, BigDecimal money,
|
String title, String remark, Long createtime, Integer type) {
|
super();
|
this.userInfo = userInfo;
|
this.hongBao = hongBao;
|
this.money = money;
|
this.title = title;
|
this.remark = remark;
|
this.createtime = createtime;
|
this.type = type;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Extract getExtract() {
|
return extract;
|
}
|
|
public void setExtract(Extract extract) {
|
this.extract = extract;
|
}
|
|
public UserInfo getUserInfo() {
|
return userInfo;
|
}
|
|
public void setUserInfo(UserInfo userInfo) {
|
this.userInfo = userInfo;
|
}
|
|
public HongBao getHongBao() {
|
return hongBao;
|
}
|
|
public void setHongBao(HongBao hongBao) {
|
this.hongBao = hongBao;
|
}
|
|
public BigDecimal getMoney() {
|
return money;
|
}
|
|
public void setMoney(BigDecimal money) {
|
this.money = money;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getRemark() {
|
return remark;
|
}
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
public Long getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(Long createtime) {
|
this.createtime = createtime;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
}
|