修复decimal字段定义错误:统一价格字段为decimal(18,8),成交量为decimal(24,8)
This commit is contained in:
parent
a62d892b4b
commit
e7a551ea8b
@ -41,31 +41,31 @@ public class MarketKlineCache
|
||||
/// <summary>
|
||||
/// 开盘价
|
||||
/// </summary>
|
||||
[SugarColumn(DecimalDigits = 8, IsNullable = false)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 18, IsNullable = false)]
|
||||
public decimal Open { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最高价
|
||||
/// </summary>
|
||||
[SugarColumn(DecimalDigits = 8, IsNullable = false)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 18, IsNullable = false)]
|
||||
public decimal High { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最低价
|
||||
/// </summary>
|
||||
[SugarColumn(DecimalDigits = 8, IsNullable = false)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 18, IsNullable = false)]
|
||||
public decimal Low { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收盘价
|
||||
/// </summary>
|
||||
[SugarColumn(DecimalDigits = 8, IsNullable = false)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 18, IsNullable = false)]
|
||||
public decimal Close { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成交量
|
||||
/// </summary>
|
||||
[SugarColumn(DecimalDigits = 8, IsNullable = true)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 24, IsNullable = true)]
|
||||
public decimal? Volume { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -29,13 +29,13 @@ public class MarketPriceCache
|
||||
/// <summary>
|
||||
/// 最新价格
|
||||
/// </summary>
|
||||
[SugarColumn(Length = 20, DecimalDigits = 8, IsNullable = false)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 18, IsNullable = false)]
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 前收盘价(计算当日涨跌幅用)
|
||||
/// </summary>
|
||||
[SugarColumn(Length = 20, DecimalDigits = 8, IsNullable = true)]
|
||||
[SugarColumn(DecimalDigits = 8, Length = 18, IsNullable = true)]
|
||||
public decimal? PreviousClose { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user