zj
2024-06-03 3603ecb207f7e712c635f19531e05fac4d19e53f
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
package project.miner.model;
 
import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;
 
import javax.persistence.Column;
import javax.persistence.Table;
 
import kernel.bo.EntityObject;
 
@Table(name="T_MINER_ORDER")
public class MinerOrder extends EntityObject implements Comparator<MinerOrder> {
    private static final long serialVersionUID = -726057340004619294L;
    
    @Column(name="PARTY_ID")
    private Serializable partyId;
    
    /**
     * 订单 号
     */
    @Column(name="ORDER_NO")
    private String order_no;
 
    /**
     * 矿机产品Id
     */
    @Column(name="MINER_ID")
    private String minerId;
 
    /**
     * 金额
     */
    @Column(name="AMOUNT")
    private double amount;
 
    /**
     * 买入时间
     */
    @Column(name="CREATE_TIME")
    private Date create_time;
 
    /**
     * 起息时间 从买入时间第二天开始算
     */
    @Column(name="EARN_TIME")
    private Date earn_time;
 
    /**
     * 截止时间
     */
    @Column(name="STOP_TIME")
    private Date stop_time;
 
    /**
     * 累计收益
     */
    @Column(name="PROFIT")
    private double profit;
 
    /**
     * 状态。0.正常赎回, 1 托管中 ,2提前赎回 (违约)3.取消
     */
    @Column(name="STATE")
    private String state = "1";
    /**
     * 上次结息日期纪录,(如遇服务中途停止,可根据该字段判定是否需要重新计算)
     */
    @Column(name="COMPUTE_DAY")
    private Date compute_day;
    /**
     * 赎回时间
     */
    @Column(name="CLOSE_TIME")
    private Date close_time;
    
    /**
     * 是否首次购买: 1:首次购买,0不是首次
     */
    @Column(name="FIRST_BUY")
    private String first_buy;
    
    /**
     * 基础计息金额
     */
    @Column(name="BASE_COMPUTE_AMOUNT")
    private double base_compute_amount;
 
    public Serializable getPartyId() {
        return partyId;
    }
 
    public void setPartyId(Serializable partyId) {
        this.partyId = partyId;
    }
 
    public String getOrder_no() {
        return order_no;
    }
 
    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }
 
    public double getAmount() {
        return amount;
    }
 
    public void setAmount(double amount) {
        this.amount = amount;
    }
 
    public Date getCreate_time() {
        return create_time;
    }
 
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
 
    public double getProfit() {
        return profit;
    }
 
    public void setProfit(double profit) {
        this.profit = profit;
    }
 
    public Date getEarn_time() {
        return earn_time;
    }
 
    public void setEarn_time(Date earn_time) {
        this.earn_time = earn_time;
    }
 
    public Date getStop_time() {
        return stop_time;
    }
 
    public void setStop_time(Date stop_time) {
        this.stop_time = stop_time;
    }
 
    public String getMinerId() {
        return minerId;
    }
 
    public void setMinerId(String minerId) {
        this.minerId = minerId;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public Date getCompute_day() {
        return compute_day;
    }
 
    public void setCompute_day(Date compute_day) {
        this.compute_day = compute_day;
    }
 
    public Date getClose_time() {
        return close_time;
    }
 
    public void setClose_time(Date close_time) {
        this.close_time = close_time;
    }
 
    public String getFirst_buy() {
        return first_buy;
    }
 
    public void setFirst_buy(String first_buy) {
        this.first_buy = first_buy;
    }
 
    
    public double getBase_compute_amount() {
        return base_compute_amount;
    }
 
    public void setBase_compute_amount(double base_compute_amount) {
        this.base_compute_amount = base_compute_amount;
    }
 
    @Override
    public int compare(MinerOrder arg0, MinerOrder arg1) {
        return -arg0.getCreate_time().compareTo(arg1.getCreate_time());
    }
 
}