1
zj
2024-08-02 a7bd76dfd00efc7b03999c4559cf8554e34c19cb
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
package project.futures;
 
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
 
import kernel.bo.EntityObject;
 
@Table(name="T_FUTURES_ORDER")
public class FuturesOrder extends EntityObject {
    public final static String STATE_SUBMITTED = "submitted";
    public final static String STATE_CREATED = "created";
    /**
     * 多仓
     */
    public final static String DIRECTION_BUY = "buy";
    /**
     * 空仓
     */
    public final static String DIRECTION_SELL = "sell";
    private static final long serialVersionUID = 8847718625460348172L;
 
    @Column(name="PARTY_ID")
    private Serializable partyId;
    
    @Column(name="SYMBOL")
    private String symbol;
    
    /**
     * 订单 号
     */
    @Column(name="ORDER_NO")
    private String order_no;
    
    /**
     * "buy":买(多) "sell":卖(空)
     */
    @Column(name="DIRECTION")
    private String direction;
 
    /**
     * 时间
     */
    @Column(name="TIMENUM")
    private int timeNum;
    
    /**
     * 时间单位
     * 
     */
    @Column(name="TIMEUNIT")
    private String timeUnit;
 
    /**
     * 委托数量
     */
    @Column(name="VOLUME")
    private Double volume;
 
    /**
     * 手续费
     */
    @Column(name="FEE")
    private double fee;
 
    /**
     * 收益率
     */
    @Column(name="PROFIT_RATIO")
    private double profit_ratio;
 
    /**
     * 收益
     */
    @Column(name="PROFIT")
    private double profit;
 
    /**
     * 成交均价(成本)
     */
    @Column(name="TRADE_AVG_PRICE")
    private Double trade_avg_price;
 
    /**
     * 平仓均价
     */
    @Column(name="CLOSE_AVG_PRICE")
    private Double close_avg_price;
 
    /**
     * 状态。submitted 已提交(持仓), created 完成(平仓)
     */
    @Column(name="STATE")
    private String state = "submitted";
 
    @Column(name="CREATE_TIME")
    private Date create_time;
    
    /**
     * 平仓时间
     */
    @Column(name="CLOSE_TIME")
    private Date close_time;
 
    /**
     * 结算时间
     */
    @Column(name="SETTLEMENT_TIME")
    private Date settlement_time;
 
    /**
     * 剩余时间 h:m:s
     */
    private String remain_time;
    
    /**
     * 购买时控制场控
     */
    @Column(name="PROFIT_LOSS")
    private String profit_loss;
 
    //备注
    @Column(name="REMARK")
    private String remark;
 
    public Serializable getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    public Serializable getPartyId() {
        return partyId;
    }
 
    public void setPartyId(Serializable partyId) {
        this.partyId = partyId;
    }
 
    public String getSymbol() {
        return symbol;
    }
 
    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }
 
    public String getOrder_no() {
        return order_no;
    }
 
    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }
 
    public String getDirection() {
        return direction;
    }
 
    public void setDirection(String direction) {
        this.direction = direction;
    }
 
    public double getFee() {
        return fee;
    }
 
    public void setFee(double fee) {
        this.fee = fee;
    }
 
    public double getProfit() {
        return profit;
    }
 
    public void setProfit(double profit) {
        this.profit = profit;
    }
 
    public Double getTrade_avg_price() {
        return trade_avg_price;
    }
 
    public void setTrade_avg_price(Double trade_avg_price) {
        this.trade_avg_price = trade_avg_price;
    }
 
    public Date getCreate_time() {
        return create_time;
    }
 
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public Double getVolume() {
        return volume;
    }
 
    public void setVolume(Double volume) {
        this.volume = volume;
    }
 
    public Double getClose_avg_price() {
        return close_avg_price;
    }
 
    public void setClose_avg_price(Double close_avg_price) {
        this.close_avg_price = close_avg_price;
    }
 
    public Date getClose_time() {
        return close_time;
    }
 
    public void setClose_time(Date close_time) {
        this.close_time = close_time;
    }
 
    public int getTimeNum() {
        return timeNum;
    }
 
    public void setTimeNum(int timeNum) {
        this.timeNum = timeNum;
    }
 
    public String getTimeUnit() {
        return timeUnit;
    }
 
    public void setTimeUnit(String timeUnit) {
        this.timeUnit = timeUnit;
    }
 
    public double getProfit_ratio() {
        return profit_ratio;
    }
 
    public void setProfit_ratio(double profit_ratio) {
        this.profit_ratio = profit_ratio;
    }
 
    public Date getSettlement_time() {
        return settlement_time;
    }
 
    public void setSettlement_time(Date settlement_time) {
        this.settlement_time = settlement_time;
    }
 
    public String getRemain_time() {
        return remain_time;
    }
 
    public void setRemain_time(String remain_time) {
        this.remain_time = remain_time;
    }
 
    public String getProfit_loss() {
        return profit_loss;
    }
 
    public void setProfit_loss(String profit_loss) {
        this.profit_loss = profit_loss;
    }
 
}