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;
|
|
|
}
|