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; /** * 交易账户对象 account * * @author ruoyi * @date 2023-12-18 */ public class Account extends BaseEntity { private static final long serialVersionUID = 1L; /** $column.columnComment */ private Long id; /** 交易日期 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "交易日期", width = 30, dateFormat = "yyyy-MM-dd") private Date tradeDay; /** 交易日星期 */ @Excel(name = "交易日星期") private String weekDay; /** 净资产 */ @Excel(name = "净资产") private BigDecimal assets; /** 总资产 */ @Excel(name = "总资产") private BigDecimal totalAssets; /** 当日盈亏 */ @Excel(name = "当日盈亏") private BigDecimal profit; /** 当日净资产盈亏比例 */ @Excel(name = "当日净资产盈亏比例") private BigDecimal assetsDiff; /** 当日总资产盈亏比例 */ @Excel(name = "当日总资产盈亏比例") private BigDecimal totalDiff; /** 用户id */ @Excel(name = "用户id") private Long userId; public void setId(Long id) { this.id = id; } public Long getId() { return id; } 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 setAssets(BigDecimal assets) { this.assets = assets; } public BigDecimal getAssets() { return assets; } public void setTotalAssets(BigDecimal totalAssets) { this.totalAssets = totalAssets; } public BigDecimal getTotalAssets() { return totalAssets; } public void setProfit(BigDecimal profit) { this.profit = profit; } public BigDecimal getProfit() { return profit; } public void setAssetsDiff(BigDecimal assetsDiff) { this.assetsDiff = assetsDiff; } public BigDecimal getAssetsDiff() { return assetsDiff; } public void setTotalDiff(BigDecimal totalDiff) { this.totalDiff = totalDiff; } public BigDecimal getTotalDiff() { return totalDiff; } public void setUserId(Long userId) { this.userId = userId; } public Long getUserId() { return userId; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("tradeDay", getTradeDay()) .append("weekDay", getWeekDay()) .append("assets", getAssets()) .append("totalAssets", getTotalAssets()) .append("profit", getProfit()) .append("assetsDiff", getAssetsDiff()) .append("totalDiff", getTotalDiff()) .append("userId", getUserId()) .toString(); } }