|
@@ -1495,7 +1495,7 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
|
|
|
totalMoneySlice[i], _ = strconv.ParseFloat(fmt.Sprintf("%.2f", totalMoneySlice[i] - prevTotalMoneySlice[i]), 64)
|
|
|
var yoy float64
|
|
|
var yoyStr string
|
|
|
- if i > 2 {
|
|
|
+ if i > 1 {
|
|
|
// 前俩月没有
|
|
|
//fmt.Println("1:", prevTotalMoneySlice[i])
|
|
|
//fmt.Println("2:", totalMoneySlice[i])
|