zyy
2025-07-11 1e42d705a1f3f040c00e499e1bf42159c601aa40
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
package com.nq.pojo;
 
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
 
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * AI产品订单建仓表
 */
@Data
@TableName("stock_ai_order_position")
@Entity
public class StockAIOrderPosition {
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    //ai交易产品订单id
    private Long stockAiOrderId;
 
    //建仓股票id
    private Integer stockId;
 
    /**
     * 建仓股票数量
     */
    private Long stockNum;
 
    /**
     * 建仓股票单价
     */
    private BigDecimal stockPrice;
 
    /**
     * 建仓时间
     */
    private Date creatDate;
 
    /**
     * 平仓单价
     */
    private BigDecimal coverPrice;
 
    /**
     * 平仓时间
     */
    private Date coverDate;
 
    /**
     * 收益 (平仓单价-建仓股票单价)*建仓股票数量
     */
    private BigDecimal earnings;
 
 
}