Browse Source

Merge branch 'fms_2.9' into debug

zwxi 1 year ago
parent
commit
5d17d8e9bf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controller/census/invoice_payment.go

+ 2 - 2
controller/census/invoice_payment.go

@@ -1513,9 +1513,9 @@ func getCensusIncomeListV2(ch chan models.CensusIncomeChartResp, req fms.IncomeL
 					yoy = (totalMoneySlice[i] + totalMoneySlice[i-1] + totalMoneySlice[i-2]) / 3
 					yoyStr = fmt.Sprintf("%.4f", yoy)
 					yoySlice = append(yoySlice, yoyStr)
+				} else {
+					yoySlice = append(yoySlice, "")
 				}
-				yoyStr = fmt.Sprintf("%.4f", yoy)
-				yoySlice = append(yoySlice, yoyStr)
 			}
 		}
 	}