admin
2018-12-10 a1538bb24b06589c24092c6847a977da21e63c00
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
package com.yeshi.fanli.entity.bus.user;
 
import javax.persistence.Entity;
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 javax.persistence.Transient;
 
import com.google.gson.annotations.Expose;
import org.yeshi.utils.mybatis.Column;
 
/**
 * 1.2.3版本后新的资金明细
 * 
 * @author cxx
 *
 * @date 2018年1月29日
 */
@Entity
@Table(name = "yeshi_ec_account_details")
@org.yeshi.utils.mybatis.Table("yeshi_ec_account_details")
public class AccountDetails {
 
    public AccountDetails(Long id) {
        this.id = id;
    }
 
    public AccountDetails() {
    }
 
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private Long id;
 
    @Column(name = "uid")
    @ManyToOne
    @JoinColumn(name = "uid")
    private UserInfo userInfo;
 
    @Column(name = "type")
    private Integer type;
 
    @Column(name = "money")
    @Expose
    private String money;
 
    @Column(name = "orderItemId")
    @ManyToOne
    @JoinColumn(name = "orderItemId")
    @Expose
    private OrderItem orderItem;
 
    @Column(name = "title")
    @Expose
    private String title;
 
    @Column(name = "eid")
    @ManyToOne
    @JoinColumn(name = "eid")
    private Extract extract;
 
    @Column(name = "createTime")
    @Expose
    private String createTime;
 
    // 不持久化,供前端显示
    @Transient
    private Integer state;
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    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 Integer getType() {
        return type;
    }
 
    public void setType(Integer type) {
        this.type = type;
    }
 
    public OrderItem getOrderItem() {
        return orderItem;
    }
 
    public void setOrderItem(OrderItem orderItem) {
        this.orderItem = orderItem;
    }
 
    public String getMoney() {
        return money;
    }
 
    public void setMoney(String money) {
        this.money = money;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public Extract getExtract() {
        return extract;
    }
 
    public void setExtract(Extract extract) {
        this.extract = extract;
    }
 
    public String getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
 
}