package com.yeshi.fanli.entity.bus.user;
|
|
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;
|
|
/**
|
* 绑定提现的账户
|
* @author cxx
|
*
|
* @date 2018年1月29日
|
*/
|
@Entity
|
@Table(name="yeshi_ec_binding_account")
|
@org.yeshi.utils.mybatis.Table("yeshi_ec_binding_account")
|
public class BindingAccount {
|
|
public static final int TYPE_ALIPAY=1;
|
|
public static final int TYPE_WXPAY=2;
|
|
@Id
|
@GeneratedValue(strategy=GenerationType.AUTO)
|
@Column(name="`id`")
|
@Expose
|
@org.yeshi.utils.mybatis.Column(name="id")
|
private Long id;
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "uid")
|
@org.yeshi.utils.mybatis.Column(name="uid")
|
private UserInfo userInfo;
|
@Expose
|
@org.yeshi.utils.mybatis.Column(name="account")
|
private String account;
|
@Expose
|
@org.yeshi.utils.mybatis.Column(name="type")
|
private Integer type; //1.支付宝 2.微信
|
@Expose
|
@org.yeshi.utils.mybatis.Column(name="name")
|
private String name;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public UserInfo getUserInfo() {
|
return userInfo;
|
}
|
|
public void setUserInfo(UserInfo userInfo) {
|
this.userInfo = userInfo;
|
}
|
|
public String getAccount() {
|
return account;
|
}
|
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
}
|