|
@@ -1831,6 +1831,9 @@ func GetChartPredictEdbInfoDataListByRuleAnnualValueInversion(edbInfoId int, con
|
|
|
|
|
|
//同比年份相应的上一期日期的余额
|
|
//同比年份相应的上一期日期的余额
|
|
lastYearDateBalance := yearTotalMap[lastPrevDateTime.Year()] - dateTotal
|
|
lastYearDateBalance := yearTotalMap[lastPrevDateTime.Year()] - dateTotal
|
|
|
|
+ if lastYearDateBalance == 0 {
|
|
|
|
+ continue
|
|
|
|
+ }
|
|
|
|
|
|
// 同比增速=当年余额/同比年份上一期日期的余额
|
|
// 同比增速=当年余额/同比年份上一期日期的余额
|
|
tbVal := decimal.NewFromFloat(currYearBalance).Div(decimal.NewFromFloat(lastYearDateBalance))
|
|
tbVal := decimal.NewFromFloat(currYearBalance).Div(decimal.NewFromFloat(lastYearDateBalance))
|