Parcourir la source

Merge branch 'fms_2.9' into debug

zwxi il y a 1 an
Parent
commit
5859e8d544
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      controller/census/invoice_payment.go

+ 1 - 1
controller/census/invoice_payment.go

@@ -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])