package com.nq.pojo;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
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")
|
@Entity
|
public class StockAIOrder {
|
|
@Id
|
//@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@TableId(type = IdType.AUTO,value = "id")
|
private Integer id;
|
|
//用户id
|
private Integer userId;
|
|
//ai交易产品id
|
private Long stockAiId;
|
|
//买入时间
|
private Date buyDate;
|
|
/**
|
* 买入金额
|
*/
|
private BigDecimal buyAmount;
|
|
/**
|
* 剩余金额
|
*/
|
private BigDecimal remainAmount;
|
|
/**
|
* 实际收益
|
*/
|
private BigDecimal realEarning;
|
|
/**
|
* 状态 待审核 申请通过 申请不通过 已完成
|
*/
|
private String status;
|
|
//审核时间
|
private Date auditDate;
|
}
|