admin
2019-03-13 33b4ed2bbf28ec16b66e552680f56a691a4e908d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
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;
    }
}