feat: 完成第三方利息汇率对接

This commit is contained in:
陈淳
2024-03-15 19:12:54 +08:00
parent e989313b0d
commit 822febba2e
6 changed files with 201 additions and 17 deletions

View File

@@ -17,16 +17,21 @@ namespace Yi.Framework.Bbs.Domain.Entities.Bank
{
public InterestRecordsEntity()
{ }
public InterestRecordsEntity(decimal inputValue, bool isFluctuate, decimal oldValue = 0)
public InterestRecordsEntity(decimal comparisonValue, decimal inputValue, bool isFluctuate = false)
{
//这里写好根据数据的值,以及是否要波动期,进行得出真是利息
//有了老值和新值我们可以根据这个变化程度去做一个涨幅或跌幅Todo
Value=inputValue;
ComparisonValue = comparisonValue;
Value = inputValue;
IsFluctuate = isFluctuate;
}
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public override Guid Id { get; protected set; }
public DateTime CreationTime { get; set; }
/// <summary>
/// 第三方的比较值
/// </summary>
public decimal ComparisonValue { get; set; }
/// <summary>
/// 当前汇率值
/// </summary>