|
@@ -1492,7 +1492,7 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
|
|
|
// 移动平均值:若是10月份,计算8月,9月,10月,这三个月的收入金额平均值
|
|
|
if req.ListParam == "0" {
|
|
|
for i := range prevTotalMoneySlice {
|
|
|
- totalMoneySlice[i], _ = strconv.ParseFloat(fmt.Sprintf("%.2f", totalMoneySlice[i] - prevTotalMoneySlice[i]), 64)
|
|
|
+ totalMoneySlice[i], _ = strconv.ParseFloat(fmt.Sprintf("%.2f", prevTotalMoneySlice[i] - totalMoneySlice[i] ), 64)
|
|
|
var yoy float64
|
|
|
var yoyStr string
|
|
|
if i > 1 {
|