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/Operations.java

266 lines
5.4 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;
/**
* 当日操作对象 operations
*
* @author ruoyi
* @date 2023-12-18
*/
public class Operations 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 tradeDay;
/** 交易日星期 */
@Excel(name = "交易日星期")
private String weekDay;
/** 操作(含账户转入转出) */
@Excel(name = "操作", readConverterExp = "含=账户转入转出")
private String operate;
/** 交易价格 */
@Excel(name = "交易价格")
private BigDecimal dealPrice;
/** 成交量 */
@Excel(name = "成交量")
private Long volumn;
/** 成交额 */
@Excel(name = "成交额")
private BigDecimal amount;
/** 印花税 */
@Excel(name = "印花税")
private BigDecimal tax;
/** 手续费 */
@Excel(name = "手续费")
private BigDecimal fee;
/** 其他费用 */
@Excel(name = "其他费用")
private BigDecimal other;
/** 操作时涨跌 */
@Excel(name = "操作时涨跌")
private BigDecimal operateDiff;
/** 关联操作id */
@Excel(name = "关联操作id")
private Long preId;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 操作逻辑 */
@Excel(name = "操作逻辑")
private String dealLogic;
/** 备注 */
@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 setTradeDay(Date tradeDay)
{
this.tradeDay = tradeDay;
}
public Date getTradeDay()
{
return tradeDay;
}
public void setWeekDay(String weekDay)
{
this.weekDay = weekDay;
}
public String getWeekDay()
{
return weekDay;
}
public void setOperate(String operate)
{
this.operate = operate;
}
public String getOperate()
{
return operate;
}
public void setDealPrice(BigDecimal dealPrice)
{
this.dealPrice = dealPrice;
}
public BigDecimal getDealPrice()
{
return dealPrice;
}
public void setVolumn(Long volumn)
{
this.volumn = volumn;
}
public Long getVolumn()
{
return volumn;
}
public void setAmount(BigDecimal amount)
{
this.amount = amount;
}
public BigDecimal getAmount()
{
return amount;
}
public void setTax(BigDecimal tax)
{
this.tax = tax;
}
public BigDecimal getTax()
{
return tax;
}
public void setFee(BigDecimal fee)
{
this.fee = fee;
}
public BigDecimal getFee()
{
return fee;
}
public void setOther(BigDecimal other)
{
this.other = other;
}
public BigDecimal getOther()
{
return other;
}
public void setOperateDiff(BigDecimal operateDiff)
{
this.operateDiff = operateDiff;
}
public BigDecimal getOperateDiff()
{
return operateDiff;
}
public void setPreId(Long preId)
{
this.preId = preId;
}
public Long getPreId()
{
return preId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setDealLogic(String dealLogic)
{
this.dealLogic = dealLogic;
}
public String getDealLogic()
{
return dealLogic;
}
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("tradeDay", getTradeDay())
.append("weekDay", getWeekDay())
.append("operate", getOperate())
.append("dealPrice", getDealPrice())
.append("volumn", getVolumn())
.append("amount", getAmount())
.append("tax", getTax())
.append("fee", getFee())
.append("other", getOther())
.append("operateDiff", getOperateDiff())
.append("preId", getPreId())
.append("userId", getUserId())
.append("dealLogic", getDealLogic())
.append("bz", getBz())
.toString();
}
}