xiziwen 3 ヶ月 前
コミット
efa894bd91
1 ファイル変更1 行追加1 行削除
  1. 1 1
      controller/census/income_list.go

+ 1 - 1
controller/census/income_list.go

@@ -743,7 +743,7 @@ func getPaymentIncomeChartList(ch chan models.CensusIncomeChartResp, req fms.Inc
 		}
 	} else {
 		yearNum = latestTime.Year() - earliestTime.Year()
-		monthNum = int(latestTime.Month() - earliestTime.Month())
+		monthNum = int(latestTime.Month() - 1)
 	}
 
 	numMonth := yearNum*12 + monthNum //共存在多少个月