You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue/book-system/src/main/java/com/ruoyi/booksystem/domain/StatisticsTotal.java

267 lines
5.8 KiB

package com.ruoyi.booksystem.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* statistics_total
*
* @author ruoyi
* @date 2023-12-18
*/
public class StatisticsTotal extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 股票代码 */
@Excel(name = "股票代码")
private String code;
/** 股票名称 */
@Excel(name = "股票名称")
private String name;
/** 建仓交易日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "建仓交易日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date startTradeDay;
/** 清仓交易日星期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "清仓交易日星期", width = 30, dateFormat = "yyyy-MM-dd")
private Date endTradeDay;
/** 总盈亏 */
@Excel(name = "总盈亏")
private BigDecimal totalProfit;
/** 总盈亏比例 */
@Excel(name = "总盈亏比例")
private BigDecimal totalDiff;
/** 建仓交易价格 */
@Excel(name = "建仓交易价格")
private BigDecimal startPrice;
/** 建仓交易价格 */
@Excel(name = "建仓交易价格")
private BigDecimal endPrice;
/** 总成交量 */
@Excel(name = "总成交量")
private Long volumnTotal;
/** 总成交额 */
@Excel(name = "总成交额")
private BigDecimal amountTotal;
/** 交易次数 */
@Excel(name = "交易次数")
private BigDecimal operateTimes;
/** 总手续费 */
@Excel(name = "总手续费")
private BigDecimal fee;
/** 总印花税 */
@Excel(name = "总印花税")
private BigDecimal tax;
/** 总其他费用 */
@Excel(name = "总其他费用")
private BigDecimal other;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 备注 */
@Excel(name = "备注")
private String bz;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setStartTradeDay(Date startTradeDay)
{
this.startTradeDay = startTradeDay;
}
public Date getStartTradeDay()
{
return startTradeDay;
}
public void setEndTradeDay(Date endTradeDay)
{
this.endTradeDay = endTradeDay;
}
public Date getEndTradeDay()
{
return endTradeDay;
}
public void setTotalProfit(BigDecimal totalProfit)
{
this.totalProfit = totalProfit;
}
public BigDecimal getTotalProfit()
{
return totalProfit;
}
public void setTotalDiff(BigDecimal totalDiff)
{
this.totalDiff = totalDiff;
}
public BigDecimal getTotalDiff()
{
return totalDiff;
}
public void setStartPrice(BigDecimal startPrice)
{
this.startPrice = startPrice;
}
public BigDecimal getStartPrice()
{
return startPrice;
}
public void setEndPrice(BigDecimal endPrice)
{
this.endPrice = endPrice;
}
public BigDecimal getEndPrice()
{
return endPrice;
}
public void setVolumnTotal(Long volumnTotal)
{
this.volumnTotal = volumnTotal;
}
public Long getVolumnTotal()
{
return volumnTotal;
}
public void setAmountTotal(BigDecimal amountTotal)
{
this.amountTotal = amountTotal;
}
public BigDecimal getAmountTotal()
{
return amountTotal;
}
public void setOperateTimes(BigDecimal operateTimes)
{
this.operateTimes = operateTimes;
}
public BigDecimal getOperateTimes()
{
return operateTimes;
}
public void setFee(BigDecimal fee)
{
this.fee = fee;
}
public BigDecimal getFee()
{
return fee;
}
public void setTax(BigDecimal tax)
{
this.tax = tax;
}
public BigDecimal getTax()
{
return tax;
}
public void setOther(BigDecimal other)
{
this.other = other;
}
public BigDecimal getOther()
{
return other;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setBz(String bz)
{
this.bz = bz;
}
public String getBz()
{
return bz;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("code", getCode())
.append("name", getName())
.append("startTradeDay", getStartTradeDay())
.append("endTradeDay", getEndTradeDay())
.append("totalProfit", getTotalProfit())
.append("totalDiff", getTotalDiff())
.append("startPrice", getStartPrice())
.append("endPrice", getEndPrice())
.append("volumnTotal", getVolumnTotal())
.append("amountTotal", getAmountTotal())
.append("operateTimes", getOperateTimes())
.append("fee", getFee())
.append("tax", getTax())
.append("other", getOther())
.append("userId", getUserId())
.append("bz", getBz())
.toString();
}
}