package com.nq.pojo; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.beans.ConstructorProperties; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; @Data @TableName(value ="user_position") public class UserPosition implements Serializable { @TableId(type = IdType.AUTO,value = "id") private Integer id; private Integer positionType; private String positionSn; private Integer userId; private String nickName; private Integer agentId; private String stockName; private String stockCode; private String stockGid; private String stockSpell; private String buyOrderId; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date buyOrderTime; private BigDecimal buyOrderPrice; private String sellOrderId; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date sellOrderTime; public void setId(Integer id) { this.id = id; } private BigDecimal sellOrderPrice; // private BigDecimal profitTargetPrice; private BigDecimal stopTargetPrice; 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; private Integer isLock; private String lockMsg; private String stockPlate; /*点差费金额*/ private BigDecimal spreadRatePrice; /*追加保证金额*/ private BigDecimal marginAdd; private Integer dzId; //待补资金 private BigDecimal amountToBeCovered = BigDecimal.ZERO; private Integer newId; }