1
zj
2024-04-26 cf4abf670a2fea1151c136e9bdf0c7fcedca27e9
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
package com.nq.pojo;
 
import java.io.Serializable;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
 
/**
 *  分仓交易表
 * @author lr 2020-07-27
 */
@Data
public class UserFundsPosition implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键id
     */
    private Integer id;
 
    /**
     * 账户类型:0、实盘,1、模拟盘
     */
    private Integer positionType;
 
    /**
     * 订单编号
     */
    private String positionSn;
 
    /**
     * 用户id
     */
    private Integer userId;
 
    /**
     * 用户真实姓名
     */
    private String nickName;
 
    /**
     * 子账户编号,默认从80000000开始
     */
    private Integer subaccountNumber;
 
    /**
     * 代理id
     */
    private Integer agentId;
 
    /**
     * 股票id
     */
    private Integer stockId;
 
    /**
     * 股票名称
     */
    private String stockName;
 
    /**
     * 股票代码
     */
    private String stockCode;
 
    /**
     * 股票gid
     */
    private String stockGid;
 
    /**
     * 股票简拼
     */
    private String stockSpell;
 
    /**
     * 入仓单号
     */
    private String buyOrderId;
 
    /**
     * 入仓时间
     */
    private Date buyOrderTime;
 
    /**
     * 入仓单价
     */
    private BigDecimal buyOrderPrice;
 
    /**
     * 出仓单号
     */
    private String sellOrderId;
 
    /**
     * 出仓时间
     */
    private Date sellOrderTime;
 
    /**
     * 出仓单价
     */
    private BigDecimal sellOrderPrice;
 
    /**
     * 下单方向:买涨、买跌
     */
    private String orderDirection;
 
    /**
     * 订单数量
     */
    private Integer orderNum;
 
    /**
     * 订单杠杆
     */
    private Integer orderLever;
 
    /**
     * 订单总金额
     */
    private BigDecimal orderTotalPrice;
 
    /**
     * 手续费
     */
    private BigDecimal orderFee;
 
    /**
     * 印花税
     */
    private BigDecimal orderSpread;
 
    /**
     * 留仓费
     */
    private BigDecimal orderStayFee;
 
    /**
     * 留仓天数
     */
    private Integer orderStayDays;
 
    /**
     * 浮动盈亏
     */
    private BigDecimal profitAndLose;
 
    /**
     * 总盈亏
     */
    private BigDecimal allProfitAndLose;
 
    /**
     * 是否锁仓:1、是,0、否
     */
    private Integer isLock;
 
    /**
     * 锁仓原因
     */
    private String lockMsg;
 
    /**
     * 股票板块:科创
     */
    private String stockPlate;
 
    /**
     * 点差费
     */
    private BigDecimal spreadRatePrice;
 
//    /**
//     * 止盈
//     */
//    private BigDecimal profitTargetPrice;
//    /**
//     * 止损
//     */
//    private BigDecimal stopTargetPrice;
    public UserFundsPosition() {
    }
 
}