|
@@ -110,7 +110,10 @@ func RefreshCalculateLjzzy(edbInfoId int, fromEdbInfo *EdbInfo, edbCode, startDa
|
|
|
dataPreItem := yv[i-1]
|
|
|
if dataCurrentItem != nil && dataPreItem != nil {
|
|
|
date = dataCurrentItem.DataTime
|
|
|
- val, _ = decimal.NewFromFloat(dataCurrentItem.Value).Sub(decimal.NewFromFloat(dataPreItem.Value)).Float64()
|
|
|
+
|
|
|
+ a := decimal.NewFromFloat(dataCurrentItem.Value)
|
|
|
+ b := decimal.NewFromFloat(dataPreItem.Value)
|
|
|
+ val, _ = a.Sub(b).Float64()
|
|
|
}
|
|
|
}
|
|
|
if date != "" {
|