feat: 添加利息趋势图

This commit is contained in:
橙子
2024-03-16 17:57:17 +08:00
parent 822febba2e
commit 534b03ef5c
5 changed files with 34 additions and 15 deletions

View File

@@ -51,6 +51,10 @@ namespace Yi.Framework.Bbs.Domain.Managers
output.ComparisonValue = currentInterestRecords.ComparisonValue;
output.CreationTime = currentInterestRecords.CreationTime;
output.Value = currentInterestRecords.Value;
_currentRateStore=new BankInterestRecordDto() { ComparisonValue= currentInterestRecords .ComparisonValue,
CreationTime=currentInterestRecords.CreationTime,Value=currentInterestRecords.Value};
}
return output;
}
@@ -101,7 +105,7 @@ namespace Yi.Framework.Bbs.Domain.Managers
//根据上一次的老值进行变化率比较
var currentValue = oldValue * changeRate;
var currentValue = oldValue + (oldValue* changeRate);
var entity = new InterestRecordsEntity(lastThirdPartyStandardValue, currentValue);
var output = await _interestRepository.InsertReturnEntityAsync(entity);