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/newstock-system/src/main/java/com/ruoyi/newstocksystem/domain/NewStocks.java

378 lines
8.2 KiB

package com.ruoyi.newstocksystem.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
import java.math.BigDecimal;
/**
* 行情数据实体类
*
* @author lxy
* @date 2026-01-18
*/
public class NewStocks extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Integer id;
/** 股票代码 */
@Excel(name = "证券代码", sort = 1, type = Excel.Type.ALL)
private String code;
/** 交易日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "交易日期", sort = 2, type = Excel.Type.ALL, dateFormat = "yyyy-MM-dd")
private Date tradeDate;
/** 开盘价 */
@Excel(name = "开盘价", sort = 3, type = Excel.Type.ALL)
private BigDecimal open;
/** 收盘价 */
@Excel(name = "收盘价", sort = 4, type = Excel.Type.ALL)
private BigDecimal close;
/** 当日涨跌幅 */
@Excel(name = "当日涨跌幅", sort = 5, type = Excel.Type.ALL)
private BigDecimal changeRate;
/** 可交易日数 */
@Excel(name = "可交易日数", sort = 6, type = Excel.Type.ALL)
private Integer tradeDays;
/** 成交量 */
@Excel(name = "成交量", sort = 7, type = Excel.Type.ALL)
private Long volume;
/** 成交额 */
@Excel(name = "成交额", sort = 8, type = Excel.Type.ALL)
private BigDecimal amount;
/** 10日区间涨跌幅 */
@Excel(name = "10日区间涨跌幅", sort = 9, type = Excel.Type.ALL)
private BigDecimal changeRate10;
/** 20日区间涨跌幅 */
@Excel(name = "20日区间涨跌幅", sort = 10, type = Excel.Type.ALL)
private BigDecimal changeRate20;
/** 60日区间涨跌幅 */
@Excel(name = "60日区间涨跌幅", sort = 11, type = Excel.Type.ALL)
private BigDecimal changeRate60;
/** 20日区间平均成交量 */
@Excel(name = "20日区间平均成交量", sort = 12, type = Excel.Type.ALL)
private BigDecimal avgVolume20;
/** 自由流通市值 */
@Excel(name = "自由流通市值", sort = 13, type = Excel.Type.ALL)
private BigDecimal freeFloatMarketValue;
/** 总市值 */
@Excel(name = "总市值", sort = 14, type = Excel.Type.ALL)
private BigDecimal totalMarketValue;
/** 机构持仓合计 */
@Excel(name = "机构持仓合计", sort = 15, type = Excel.Type.ALL)
private BigDecimal agenciesHold;
// 关联字段,非数据库字段
@Excel(name = "证券名称", sort = 16, type = Excel.Type.ALL)
private String name;
@Excel(name = "行业ID", sort = 17, type = Excel.Type.ALL)
private Integer industryId;
@Excel(name = "所属东财行业指数2级", sort = 18, type = Excel.Type.ALL)
private String industryName;
@Excel(name = "行业级别", sort = 19, type = Excel.Type.ALL)
private Integer industryLevel;
@Excel(name = "所属东财行业指数代码2级", sort = 20, type = Excel.Type.ALL)
private String industryCode;
@Excel(name = "父行业代码", sort = 21, type = Excel.Type.ALL)
private String parentCode;
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上市日期", sort = 22, type = Excel.Type.ALL, dateFormat = "yyyy-MM-dd")
private Date listDate;
@Excel(name = "市场类型", sort = 23, type = Excel.Type.ALL)
private String marketType;
@Excel(name = "状态", sort = 24, type = Excel.Type.ALL)
private Integer status;
@Excel(name = "涨跌停类型", sort = 25, type = Excel.Type.ALL)
private Integer limitType;
@Excel(name = "涨跌停价格", sort = 26, type = Excel.Type.ALL)
private BigDecimal limitPrice;
public void setId(Integer id)
{
this.id = id;
}
public Integer getId()
{
return id;
}
public void setCode(String code)
{
this.code = code;
}
public String getCode()
{
return code;
}
public void setTradeDate(Date tradeDate)
{
this.tradeDate = tradeDate;
}
public Date getTradeDate()
{
return tradeDate;
}
public void setOpen(BigDecimal open)
{
this.open = open;
}
public BigDecimal getOpen()
{
return open;
}
public void setClose(BigDecimal close)
{
this.close = close;
}
public BigDecimal getClose()
{
return close;
}
public void setChangeRate(BigDecimal changeRate)
{
this.changeRate = changeRate;
}
public BigDecimal getChangeRate()
{
return changeRate;
}
public void setTradeDays(Integer tradeDays)
{
this.tradeDays = tradeDays;
}
public Integer getTradeDays()
{
return tradeDays;
}
public void setVolume(Long volume)
{
this.volume = volume;
}
public Long getVolume()
{
return volume;
}
public void setAmount(BigDecimal amount)
{
this.amount = amount;
}
public BigDecimal getAmount()
{
return amount;
}
public void setChangeRate10(BigDecimal changeRate10)
{
this.changeRate10 = changeRate10;
}
public BigDecimal getChangeRate10()
{
return changeRate10;
}
public void setChangeRate20(BigDecimal changeRate20)
{
this.changeRate20 = changeRate20;
}
public BigDecimal getChangeRate20()
{
return changeRate20;
}
public void setChangeRate60(BigDecimal changeRate60)
{
this.changeRate60 = changeRate60;
}
public BigDecimal getChangeRate60()
{
return changeRate60;
}
public void setAvgVolume20(BigDecimal avgVolume20)
{
this.avgVolume20 = avgVolume20;
}
public BigDecimal getAvgVolume20()
{
return avgVolume20;
}
public void setFreeFloatMarketValue(BigDecimal freeFloatMarketValue)
{
this.freeFloatMarketValue = freeFloatMarketValue;
}
public BigDecimal getFreeFloatMarketValue()
{
return freeFloatMarketValue;
}
public void setTotalMarketValue(BigDecimal totalMarketValue)
{
this.totalMarketValue = totalMarketValue;
}
public BigDecimal getTotalMarketValue()
{
return totalMarketValue;
}
public void setAgenciesHold(BigDecimal agenciesHold)
{
this.agenciesHold = agenciesHold;
}
public BigDecimal getAgenciesHold()
{
return agenciesHold;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public Integer getIndustryId()
{
return industryId;
}
public void setIndustryId(Integer industryId)
{
this.industryId = industryId;
}
public String getIndustryName()
{
return industryName;
}
public void setIndustryName(String industryName)
{
this.industryName = industryName;
}
public Integer getIndustryLevel()
{
return industryLevel;
}
public void setIndustryLevel(Integer industryLevel)
{
this.industryLevel = industryLevel;
}
public String getIndustryCode()
{
return industryCode;
}
public void setIndustryCode(String industryCode)
{
this.industryCode = industryCode;
}
public String getParentCode()
{
return parentCode;
}
public void setParentCode(String parentCode)
{
this.parentCode = parentCode;
}
public Date getListDate()
{
return listDate;
}
public void setListDate(Date listDate)
{
this.listDate = listDate;
}
public String getMarketType()
{
return marketType;
}
public void setMarketType(String marketType)
{
this.marketType = marketType;
}
public Integer getStatus()
{
return status;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getLimitType()
{
return limitType;
}
public void setLimitType(Integer limitType)
{
this.limitType = limitType;
}
public BigDecimal getLimitPrice()
{
return limitPrice;
}
public void setLimitPrice(BigDecimal limitPrice)
{
this.limitPrice = limitPrice;
}
}